Class JSToIntegerWithoutRoundingNode

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

public abstract class JSToIntegerWithoutRoundingNode extends JavaScriptBaseNode
This implements ToIntegerWithoutRounding (via Temporal proposal).
  • Constructor Details

    • JSToIntegerWithoutRoundingNode

      public JSToIntegerWithoutRoundingNode()
  • Method Details

    • execute

      public final double execute(Object value)
    • executeDouble

      public abstract double executeDouble(Object value)
    • doInteger

      protected static double doInteger(int value)
    • doLong

      protected static double doLong(long value)
    • doBoolean

      protected static double doBoolean(boolean value)
    • doSafeInteger

      protected static double doSafeInteger(SafeInteger value)
    • doDoubleInfinite

      protected final double doDoubleInfinite(double value, com.oracle.truffle.api.profiles.InlinedBranchProfile errorBranch)
    • doNull

      protected static double doNull(Object value)
    • doUndefined

      protected static double doUndefined(Object value)
    • doSymbol

      protected final double doSymbol(Symbol value)
    • doBigInt

      protected final double doBigInt(BigInt value)
    • doString

      protected double doString(com.oracle.truffle.api.strings.TruffleString value, JSToIntegerWithoutRoundingNode toIntOrInf, JSStringToNumberNode stringToNumberNode)
    • doJSOrForeignObject

      protected double doJSOrForeignObject(Object value, JSToIntegerWithoutRoundingNode toIntOrInf, JSToNumberNode toNumberNode)