Class JSToDoubleNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSToDoubleNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
Implements the abstract operation ToNumber but always converting the result to a double value.
- See Also:
-
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 JSToDoubleNodecreate()protected final doubleprotected static doubledoBoolean(boolean value) protected static doubledoDouble(double value) protected doubledoForeignObject(Object object, JSToDoubleNode recursiveToDouble, JSToPrimitiveNode toPrimitiveNode) protected static doubledoInteger(int value) protected doubledoJSObject(JSObject value, JSToDoubleNode recursiveToDouble, JSToPrimitiveNode toPrimitiveNode) protected static doubledoLong(long value) protected static doubleprotected static doubledoStringDouble(com.oracle.truffle.api.strings.TruffleString value, JSStringToNumberNode stringToNumberNode) protected final doubleprotected static doubledoUndefined(Object value) final doubleabstract doubleexecuteDouble(Object value) Methods 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
-
JSToDoubleNode
public JSToDoubleNode()
-
-
Method Details
-
execute
-
executeDouble
-
create
-
doInteger
protected static double doInteger(int value) -
doBoolean
protected static double doBoolean(boolean value) -
doDouble
protected static double doDouble(double value) -
doLong
protected static double doLong(long value) -
doBigInt
-
doNull
-
doUndefined
-
doStringDouble
protected static double doStringDouble(com.oracle.truffle.api.strings.TruffleString value, JSStringToNumberNode stringToNumberNode) -
doJSObject
protected double doJSObject(JSObject value, JSToDoubleNode recursiveToDouble, JSToPrimitiveNode toPrimitiveNode) -
doSymbol
-
doForeignObject
protected double doForeignObject(Object object, JSToDoubleNode recursiveToDouble, JSToPrimitiveNode toPrimitiveNode)
-