Class IsObjectNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.access.IsObjectNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
Checks whether the argument is of type Object (JS or foreign), i.e., not a primitive value.
-
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.Children -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IsObjectNodecreate()protected static booleanprotected static booleandoBoolean(boolean operand) protected static booleandoDouble(double operand) protected static booleandoForeignObject(Object operand, com.oracle.truffle.api.interop.InteropLibrary interop) protected static booleandoInt(int operand) protected static booleandoJSObject(JSObject operand) protected static booleandoLargeInt(SafeInteger operand) protected static booleandoLong(long operand) protected static booleanprotected static booleanprotected static booleandoTString(com.oracle.truffle.api.strings.TruffleString operand) protected static booleandoUndefined(Object operand) abstract booleanexecuteBoolean(Object operand) static IsObjectNodeMethods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace, reportLoopCount, reportLoopCountMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Constructor Details
-
IsObjectNode
public IsObjectNode()
-
-
Method Details
-
executeBoolean
-
doNull
-
doUndefined
-
doBoolean
protected static boolean doBoolean(boolean operand) -
doInt
protected static boolean doInt(int operand) -
doLong
protected static boolean doLong(long operand) -
doLargeInt
-
doDouble
protected static boolean doDouble(double operand) -
doSymbol
-
doBigInt
-
doTString
protected static boolean doTString(com.oracle.truffle.api.strings.TruffleString operand) -
doJSObject
-
doForeignObject
protected static boolean doForeignObject(Object operand, com.oracle.truffle.api.interop.InteropLibrary interop) -
create
-
getUncached
-