Class ArrayLengthNode.ArrayLengthReadNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.array.ArrayLengthNode
com.oracle.truffle.js.nodes.array.ArrayLengthNode.ArrayLengthReadNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
- Enclosing class:
ArrayLengthNode
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.js.nodes.array.ArrayLengthNode
ArrayLengthNode.ArrayLengthReadNode, ArrayLengthNode.ArrayLengthWriteNode, ArrayLengthNode.SetArrayLengthNode, ArrayLengthNode.SetArrayLengthOrDeleteNodeNested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children -
Field Summary
Fields inherited from class com.oracle.truffle.js.nodes.array.ArrayLengthNode
MAX_TYPE_COUNT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()protected static intdoIntLength(JSArrayBase target, ScriptArray arrayType) protected final intdoTypedArrayAutoLength(JSTypedArrayObject target, TypedArrayLengthNode typedArrayLengthNode) protected static intprotected static intdoUncachedIntLength(JSArrayBase target) protected static doubledoUncachedLongLength(JSArrayBase target) final doubleexecuteDouble(JSDynamicObject target) abstract intexecuteInt(JSDynamicObject target) abstract ObjectexecuteObject(JSDynamicObject target) protected static booleanisLengthAlwaysInt(ScriptArray arrayType) Methods inherited from class com.oracle.truffle.js.nodes.array.ArrayLengthNode
getArrayTypeMethods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace, reportLoopCount, reportLoopCountMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, reportReplace, toString
-
Constructor Details
-
ArrayLengthReadNode
public ArrayLengthReadNode()
-
-
Method Details
-
create
-
executeInt
public abstract int executeInt(JSDynamicObject target) throws com.oracle.truffle.api.nodes.UnexpectedResultException - Throws:
com.oracle.truffle.api.nodes.UnexpectedResultException
-
executeObject
-
executeDouble
-
doTypedArrayFixedLength
-
doTypedArrayAutoLength
protected final int doTypedArrayAutoLength(JSTypedArrayObject target, TypedArrayLengthNode typedArrayLengthNode) -
doIntLength
-
doUncachedIntLength
protected static int doUncachedIntLength(JSArrayBase target) throws com.oracle.truffle.api.nodes.UnexpectedResultException - Throws:
com.oracle.truffle.api.nodes.UnexpectedResultException
-
doUncachedLongLength
-
isLengthAlwaysInt
-