Class RoundNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class RoundNode extends MathOperation
  • Method Details

    • create

      public static RoundNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments)
    • createCast

      protected static JavaScriptNode[] createCast(JavaScriptNode[] argumentNodes)
    • isCornercase

      protected static boolean isCornercase(double d)
    • roundInt

      protected static int roundInt(int a)
    • roundCornercase

      protected static double roundCornercase(double value)
    • roundDoubleInt

      protected int roundDoubleInt(double value, com.oracle.truffle.api.profiles.InlinedConditionProfile shiftProfile, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeLongBitsProfile)
    • roundDouble

      protected double roundDouble(double value, com.oracle.truffle.api.profiles.InlinedConditionProfile profileA, com.oracle.truffle.api.profiles.InlinedConditionProfile profileB, com.oracle.truffle.api.profiles.InlinedConditionProfile shiftProfile, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeLongBitsProfile)