public abstract static class ArrayLengthNode.ArrayLengthReadNode extends ArrayLengthNode
ArrayLengthNode.ArrayLengthReadNode, ArrayLengthNode.ArrayLengthWriteNode, ArrayLengthNode.SetArrayLengthNode, ArrayLengthNode.SetArrayLengthOrDeleteNodeMAX_TYPE_COUNT| Constructor and Description |
|---|
ArrayLengthReadNode() |
| Modifier and Type | Method and Description |
|---|---|
static ArrayLengthNode.ArrayLengthReadNode |
create() |
protected static int |
doIntLength(JSArrayBase target,
ScriptArray arrayType) |
protected static int |
doTypedArray(JSTypedArrayObject target) |
protected static int |
doUncachedIntLength(JSArrayBase target) |
protected static double |
doUncachedLongLength(JSArrayBase target) |
double |
executeDouble(JSDynamicObject target) |
abstract int |
executeInt(JSDynamicObject target) |
abstract Object |
executeObject(JSDynamicObject target) |
protected static boolean |
isLengthAlwaysInt(ScriptArray arrayType) |
getArrayTypecopy, 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 ArrayLengthNode.ArrayLengthReadNode create()
public abstract int executeInt(JSDynamicObject target) throws com.oracle.truffle.api.nodes.UnexpectedResultException
com.oracle.truffle.api.nodes.UnexpectedResultExceptionpublic abstract Object executeObject(JSDynamicObject target)
public final double executeDouble(JSDynamicObject target)
protected static int doTypedArray(JSTypedArrayObject target)
protected static int doIntLength(JSArrayBase target, ScriptArray arrayType)
protected static int doUncachedIntLength(JSArrayBase target) throws com.oracle.truffle.api.nodes.UnexpectedResultException
com.oracle.truffle.api.nodes.UnexpectedResultExceptionprotected static double doUncachedLongLength(JSArrayBase target)
protected static boolean isLengthAlwaysInt(ScriptArray arrayType)