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(com.oracle.truffle.api.object.DynamicObject target,
ScriptArray arrayType) |
protected static double |
doLongLength(com.oracle.truffle.api.object.DynamicObject target,
ScriptArray arrayType) |
protected static int |
doUncachedIntLength(com.oracle.truffle.api.object.DynamicObject target) |
protected static double |
doUncachedLongLength(com.oracle.truffle.api.object.DynamicObject target) |
double |
executeDouble(com.oracle.truffle.api.object.DynamicObject target) |
abstract int |
executeInt(com.oracle.truffle.api.object.DynamicObject target) |
abstract Object |
executeObject(com.oracle.truffle.api.object.DynamicObject target) |
protected static boolean |
isLengthAlwaysInt(ScriptArray arrayType) |
getArrayTypecopy, onReplaceaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecialize, toStringpublic static ArrayLengthNode.ArrayLengthReadNode create()
public abstract int executeInt(com.oracle.truffle.api.object.DynamicObject target)
throws com.oracle.truffle.api.nodes.UnexpectedResultException
com.oracle.truffle.api.nodes.UnexpectedResultExceptionpublic abstract Object executeObject(com.oracle.truffle.api.object.DynamicObject target)
public final double executeDouble(com.oracle.truffle.api.object.DynamicObject target)
protected static int doIntLength(com.oracle.truffle.api.object.DynamicObject target,
ScriptArray arrayType)
protected static double doLongLength(com.oracle.truffle.api.object.DynamicObject target,
ScriptArray arrayType)
protected static int doUncachedIntLength(com.oracle.truffle.api.object.DynamicObject target)
throws com.oracle.truffle.api.nodes.UnexpectedResultException
com.oracle.truffle.api.nodes.UnexpectedResultExceptionprotected static double doUncachedLongLength(com.oracle.truffle.api.object.DynamicObject target)
protected static boolean isLengthAlwaysInt(ScriptArray arrayType)