public abstract class LongToIntOrDoubleNode extends JavaScriptBaseNode
JSRuntime.longToIntOrDouble(long)| Constructor and Description |
|---|
LongToIntOrDoubleNode() |
| Modifier and Type | Method and Description |
|---|---|
static LongToIntOrDoubleNode |
create() |
abstract Number |
execute(com.oracle.truffle.api.nodes.Node node,
long longValue) |
Number |
fromIndex(com.oracle.truffle.api.nodes.Node node,
long index)
To be used with non-negative integers that are known to be in the safe integer range, like
those that come from ToIndex or ToLength.
|
protected static Number |
toIntOrDouble(com.oracle.truffle.api.nodes.Node node,
long value,
com.oracle.truffle.api.profiles.InlinedBranchProfile toDoubleBranch) |
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 abstract Number execute(com.oracle.truffle.api.nodes.Node node, long longValue)
public final Number fromIndex(com.oracle.truffle.api.nodes.Node node, long index)
protected static Number toIntOrDouble(com.oracle.truffle.api.nodes.Node node, long value, com.oracle.truffle.api.profiles.InlinedBranchProfile toDoubleBranch)
public static LongToIntOrDoubleNode create()