Package com.oracle.truffle.sl.nodes.util
Class SLUnboxNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.sl.nodes.local.SLScopedNode
com.oracle.truffle.sl.nodes.SLStatementNode
com.oracle.truffle.sl.nodes.SLExpressionNode
com.oracle.truffle.sl.nodes.util.SLUnboxNode
- All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode,com.oracle.truffle.api.nodes.NodeInterface,Cloneable
The node to normalize any value to an SL value. This is useful to reduce the number of values
expression nodes need to expect.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.ChildrenNested classes/interfaces inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
com.oracle.truffle.api.instrumentation.InstrumentableNode.WrapperNode -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SLBigIntegerfromBigNumber(SLBigInteger value) static booleanfromBoolean(boolean value) static ObjectfromForeign(Object value, com.oracle.truffle.api.interop.InteropLibrary interop) static SLFunctionfromFunction(SLFunction value) static SLNullfromFunction(SLNull value) static longfromLong(long value) static com.oracle.truffle.api.strings.TruffleStringfromString(String value, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode) static com.oracle.truffle.api.strings.TruffleStringfromTruffleString(com.oracle.truffle.api.strings.TruffleString value) Methods inherited from class com.oracle.truffle.sl.nodes.SLExpressionNode
addExpressionTag, createWrapper, executeBoolean, executeGeneric, executeLong, executeVoid, hasTagMethods inherited from class com.oracle.truffle.sl.nodes.SLStatementNode
addRootTag, addStatementTag, formatSourceSection, getSourceCharIndex, getSourceEndIndex, getSourceLength, getSourceSection, hasSource, isInstrumentable, setSourceSection, setUnavailableSourceSection, toStringMethods inherited from class com.oracle.truffle.sl.nodes.local.SLScopedNode
findBlock, getVisibleVariablesIndexOnEnter, hasScope, setVisibleVariablesIndexOnEnter, setVisibleVariablesIndexOnExitMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, reportReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
createProbe, findNearestNodeAt, findNearestNodeAt, findProbe, getNodeObject, materializeInstrumentableNodes
-
Field Details
-
LIMIT
public static final int LIMIT- See Also:
-
-
Constructor Details
-
SLUnboxNode
public SLUnboxNode()
-
-
Method Details
-
fromString
public static com.oracle.truffle.api.strings.TruffleString fromString(String value, com.oracle.truffle.api.strings.TruffleString.FromJavaStringNode fromJavaStringNode) -
fromTruffleString
public static com.oracle.truffle.api.strings.TruffleString fromTruffleString(com.oracle.truffle.api.strings.TruffleString value) -
fromBoolean
public static boolean fromBoolean(boolean value) -
fromLong
public static long fromLong(long value) -
fromBigNumber
-
fromFunction
-
fromFunction
-
fromForeign
-