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 boolean
getBooleanSafe
(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 byte
getByteSafe
(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 double
getDoubleSafe
(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 float
getFloatSafe
(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 int
getIntSafe
(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 long
getLongSafe
(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 Object
getObjectSafe
(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:
-