/** * Read a frame slot that is guaranteed to be of the desired kind (either previously checked by * a guard or statically known). * * @param frameSlot the slot of the variable * @throws IllegalStateException if the slot kind does not match * @see Frame#getLong(FrameSlot) * @since 0.8 or earlier */ public static long getLongSafe(Frame frame, FrameSlot frameSlot) { try { return frame.getLong(frameSlot); } catch (FrameSlotTypeException e) { throw new IllegalStateException(); } }
/** * Read a frame slot that is guaranteed to be of the desired kind (either previously checked by * a guard or statically known). * * @param frameSlot the slot of the variable * @throws IllegalStateException if the slot kind does not match * @see Frame#getLong(FrameSlot) */ public static long getLongSafe(Frame frame, FrameSlot frameSlot) { try { return frame.getLong(frameSlot); } catch (FrameSlotTypeException e) { throw new IllegalStateException(); } }
/** * Read a frame slot that is guaranteed to be of the desired kind (either previously checked by * a guard or statically known). * * @param frameSlot the slot of the variable * @throws IllegalStateException if the slot kind does not match * @see Frame#getLong(FrameSlot) * @since 0.8 or earlier */ public static long getLongSafe(Frame frame, FrameSlot frameSlot) { try { return frame.getLong(frameSlot); } catch (FrameSlotTypeException e) { throw new IllegalStateException(); } }
@Override @TruffleBoundary public long getLong(FrameSlot slot) throws FrameSlotTypeException { return delegate.getLong(slot); }
@Override @TruffleBoundary public long getLong(FrameSlot slot) throws FrameSlotTypeException { return delegate.getLong(slot); }