public abstract class RoundNode extends MathOperation
JSBuiltinNode.Inlineable, JSBuiltinNode.InlinedARGUMENTSINTERMEDIATE_VALUE| Modifier and Type | Method and Description |
|---|---|
static RoundNode |
create(JSContext context,
JSBuiltin builtin,
JavaScriptNode[] arguments) |
protected static JavaScriptNode[] |
createCast(JavaScriptNode[] argumentNodes) |
protected static boolean |
isCornercase(double d) |
protected static double |
roundCornercase(double value) |
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) |
protected int |
roundDoubleInt(double value,
com.oracle.truffle.api.profiles.InlinedConditionProfile shiftProfile,
com.oracle.truffle.api.profiles.InlinedBranchProfile negativeLongBitsProfile) |
protected static int |
roundInt(int a) |
toDoublecopyUninitialized, countsTowardsStackTraceLimit, createBuiltin, getArguments, getBuiltin, getContext, getNodeObject, hasTag, isCallerSensitive, isInlineable, isSplitImmediately, tryCreateInlinedaddCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, executeBoolean, executeDouble, executeInt, executeLong, executeVoid, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsgetLanguage, getRealm, hasOverloadedOperatorsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecializepublic static RoundNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments)
protected static JavaScriptNode[] createCast(JavaScriptNode[] argumentNodes)
protected static boolean isCornercase(double d)
protected static int roundInt(int a)
protected static double roundCornercase(double value)
protected int roundDoubleInt(double value,
com.oracle.truffle.api.profiles.InlinedConditionProfile shiftProfile,
com.oracle.truffle.api.profiles.InlinedBranchProfile negativeLongBitsProfile)
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)