public abstract class JSToLengthNode extends JavaScriptBaseNode
| Constructor and Description |
|---|
JSToLengthNode() |
| Modifier and Type | Method and Description |
|---|---|
static JSToLengthNode |
create() |
protected long |
doDouble(double value,
com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch,
com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch) |
protected long |
doInt(int value,
com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch) |
protected long |
doObject(Object value,
JSToNumberNode toNumberNode,
com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch,
com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch) |
protected long |
doSafeInteger(SafeInteger value,
com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch) |
protected static long |
doUndefined(Object value) |
abstract long |
executeLong(Object value) |
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 static JSToLengthNode create()
public abstract long executeLong(Object value)
protected final long doInt(int value,
com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch)
protected final long doSafeInteger(SafeInteger value, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch)
protected final long doDouble(double value,
com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch,
com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch)
protected static long doUndefined(Object value)
protected final long doObject(Object value, JSToNumberNode toNumberNode, com.oracle.truffle.api.profiles.InlinedBranchProfile negativeBranch, com.oracle.truffle.api.profiles.InlinedBranchProfile tooLargeBranch)