Class JSToInt32Node
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSToInt32Node
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
This node implements the behavior of ToInt32. Not to confuse with ToInteger, etc.
-
Nested Class Summary
Nested ClassesNested 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 JSToInt32Nodecreate()static JavaScriptNodecreate(JavaScriptNode child) static JavaScriptNodecreate(JavaScriptNode child, boolean bitwiseOr) protected intprotected intdoBoolean(boolean value) protected intdoDouble(double value) protected intdoDoubleFitsInt(double value) protected intdoDoubleRepresentableAsLong(double value) protected intdoDoubleRepresentableAsSafeInteger(double value) protected static intdoForeignObject(Object object, JSToPrimitiveNode toPrimitiveNode, JSToInt32Node toInt32Node) protected intdoInteger(int value) protected intdoJSObject(JSObject value, JSToDoubleNode toDoubleNode) protected static intdoLong(long value) protected static intdoLongNotSafeInteger(long value) protected intprotected intdoSafeInteger(SafeInteger value) protected intdoString(com.oracle.truffle.api.strings.TruffleString value, JSStringToNumberNode stringToNumberNode) protected final intprotected intdoUndefined(Object value) abstract intexecuteInt(Object operand) Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplaceMethods 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, toString
-
Constructor Details
-
JSToInt32Node
protected JSToInt32Node()
-
-
Method Details
-
create
-
create
-
create
-
executeInt
-
doInteger
protected int doInteger(int value) -
doSafeInteger
-
doBoolean
protected int doBoolean(boolean value) -
doLong
protected static int doLong(long value) -
doLongNotSafeInteger
protected static int doLongNotSafeInteger(long value) -
doDoubleFitsInt
protected int doDoubleFitsInt(double value) -
doDoubleRepresentableAsSafeInteger
protected int doDoubleRepresentableAsSafeInteger(double value) -
doDoubleRepresentableAsLong
protected int doDoubleRepresentableAsLong(double value) -
doDouble
protected int doDouble(double value) -
doUndefined
-
doNull
-
doString
protected int doString(com.oracle.truffle.api.strings.TruffleString value, JSStringToNumberNode stringToNumberNode) -
doSymbol
-
doBigInt
-
doJSObject
-
doForeignObject
protected static int doForeignObject(Object object, JSToPrimitiveNode toPrimitiveNode, JSToInt32Node toInt32Node)
-