public abstract class JSToIntegerThrowOnInfinityNode extends JavaScriptBaseNode
| Constructor and Description |
|---|
JSToIntegerThrowOnInfinityNode() |
| Modifier and Type | Method and Description |
|---|---|
static JSToIntegerThrowOnInfinityNode |
create() |
protected Number |
doBigInt(BigInt value) |
protected static int |
doBoolean(boolean value) |
protected long |
doDoubleInfinite(double value) |
protected static int |
doInteger(int value) |
protected Number |
doJSOrForeignObject(Object value,
JSToIntegerThrowOnInfinityNode toIntOrInf,
JSToNumberNode toNumberNode) |
protected static long |
doLong(long value) |
protected static int |
doNull(Object value) |
protected static SafeInteger |
doSafeInteger(SafeInteger value) |
protected Number |
doString(com.oracle.truffle.api.strings.TruffleString value,
JSToIntegerThrowOnInfinityNode toIntOrInf,
JSStringToNumberNode stringToNumberNode) |
protected Number |
doSymbol(Symbol value) |
protected static int |
doUndefined(Object value) |
abstract Object |
execute(Object value) |
double |
executeDouble(Object value) |
int |
executeIntOrThrow(Object value)
The node by definition should return a double value (that has integer properties), but in
some cases we know that the result needs to fit into an integer.
|
copy, getLanguage, getRealm, hasOverloadedOperators, onReplaceaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, toStringpublic final int executeIntOrThrow(Object value)
public final double executeDouble(Object value)
public static JSToIntegerThrowOnInfinityNode create()
protected static int doInteger(int value)
protected static long doLong(long value)
protected static int doBoolean(boolean value)
protected static SafeInteger doSafeInteger(SafeInteger value)
protected long doDoubleInfinite(double value)
protected static int doNull(Object value)
protected static int doUndefined(Object value)
protected Number doString(com.oracle.truffle.api.strings.TruffleString value, JSToIntegerThrowOnInfinityNode toIntOrInf, JSStringToNumberNode stringToNumberNode)
protected Number doJSOrForeignObject(Object value, JSToIntegerThrowOnInfinityNode toIntOrInf, JSToNumberNode toNumberNode)