Class JSToNumericNode.PrimitiveToNumericOrNullNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.cast.JSToNumericNode.PrimitiveToNumericOrNullNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Enclosing class:
JSToNumericNode

protected abstract static class JSToNumericNode.PrimitiveToNumericOrNullNode extends JavaScriptBaseNode
Returns true if the value is already a numeric value that should not be converted ToNumber.
  • Constructor Details

    • PrimitiveToNumericOrNullNode

      protected PrimitiveToNumericOrNullNode()
  • Method Details

    • execute

      public abstract Object execute(com.oracle.truffle.api.nodes.Node node, Object value)
    • doBigInt

      protected static BigInt doBigInt(BigInt value)
    • doForeignBigInt

      protected static double doForeignBigInt(BigInt value)
    • doLong

      protected static double doLong(long value)
    • doOther

      protected static Object doOther(Object value)