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

public abstract class JSToDoubleNode extends JavaScriptBaseNode
Implements the abstract operation ToNumber but always converting the result to a double value.
See Also:
  • Constructor Details

    • JSToDoubleNode

      public JSToDoubleNode()
  • Method Details

    • execute

      public final double execute(Object value)
    • executeDouble

      public abstract double executeDouble(Object value)
    • create

      public static JSToDoubleNode 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

      protected final double doBigInt(BigInt value)
    • doNull

      protected static double doNull(Object value)
    • doUndefined

      protected static double doUndefined(Object value)
    • 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

      protected final double doSymbol(Symbol value)
    • doForeignObject

      protected double doForeignObject(Object object, JSToDoubleNode recursiveToDouble, JSToPrimitiveNode toPrimitiveNode)