Package com.oracle.truffle.api.frame
Class FrameUtil
java.lang.Object
com.oracle.truffle.api.frame.FrameUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetBooleanSafe(Frame frame, FrameSlot frameSlot) Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).static bytegetByteSafe(Frame frame, FrameSlot frameSlot) Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).static doublegetDoubleSafe(Frame frame, FrameSlot frameSlot) Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).static floatgetFloatSafe(Frame frame, FrameSlot frameSlot) Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).static intgetIntSafe(Frame frame, FrameSlot frameSlot) Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).static longgetLongSafe(Frame frame, FrameSlot frameSlot) Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).static ObjectgetObjectSafe(Frame frame, FrameSlot frameSlot) Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).
-
Constructor Details
-
FrameUtil
public FrameUtil()
-
-
Method Details
-
getObjectSafe
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).- Parameters:
frameSlot- the slot of the variable- Throws:
IllegalStateException- if the slot kind does not match- See Also:
-
getByteSafe
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).- Parameters:
frameSlot- the slot of the variable- Throws:
IllegalStateException- if the slot kind does not match- See Also:
-
getBooleanSafe
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).- Parameters:
frameSlot- the slot of the variable- Throws:
IllegalStateException- if the slot kind does not match- See Also:
-
getIntSafe
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).- Parameters:
frameSlot- the slot of the variable- Throws:
IllegalStateException- if the slot kind does not match- See Also:
-
getLongSafe
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).- Parameters:
frameSlot- the slot of the variable- Throws:
IllegalStateException- if the slot kind does not match- See Also:
-
getDoubleSafe
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).- Parameters:
frameSlot- the slot of the variable- Throws:
IllegalStateException- if the slot kind does not match- See Also:
-
getFloatSafe
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by a guard or statically known).- Parameters:
frameSlot- the slot of the variable- Throws:
IllegalStateException- if the slot kind does not match- See Also:
-