Class JSToBigIntNode.CoercePrimitiveToBigIntNode

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

public abstract static class JSToBigIntNode.CoercePrimitiveToBigIntNode extends JavaScriptBaseNode
Implementation of the ToBigInt conversion performed by the BigInt(argument) where the argument has already been converted ToPrimitive, i.e.: If prim is a Number, return NumberToBigInt(prim), otherwise ToBigInt(prim).
See Also:
  • Constructor Details

    • CoercePrimitiveToBigIntNode

      public CoercePrimitiveToBigIntNode()
  • Method Details

    • executeBigInt

      public abstract BigInt executeBigInt(com.oracle.truffle.api.nodes.Node node, Object value)
    • doBoolean

      protected static BigInt doBoolean(boolean value)
    • doBigInt

      protected static BigInt doBigInt(BigInt value)
    • doForeignBigInt

      protected static BigInt doForeignBigInt(BigInt value)
    • doInteger

      protected static BigInt doInteger(int value)
    • doSafeInteger

      protected static BigInt doSafeInteger(SafeInteger value)
    • doLong

      protected static BigInt doLong(long value)
    • doDouble

      protected static BigInt doDouble(double value, JSNumberToBigIntNode numberToBigInt)
    • doSymbolNullOrUndefined

      protected static BigInt doSymbolNullOrUndefined(com.oracle.truffle.api.nodes.Node node, Object value)
    • doString

      protected static BigInt doString(com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.strings.TruffleString value)