Class TypedArrayLengthNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.array.TypedArrayLengthNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Gets the length of a typed array. Specializes on the type of the underlying ArrayBuffer.
-
Nested Class Summary
Nested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TypedArrayLengthNodecreate()protected static intdoAutoLength(com.oracle.truffle.api.nodes.Node node, JSTypedArrayObject typedArray, JSContext context, ArrayBufferByteLengthNode getByteLengthNode) protected static intdoFixedLength(JSTypedArrayObject typedArray, JSContext context) protected static intdoOutOfBounds(JSTypedArrayObject typedArray, JSContext context) abstract intexecute(com.oracle.truffle.api.nodes.Node node, JSTypedArrayObject typedArrayObj, JSContext context) Methods inherited from class 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
-
TypedArrayLengthNode
public TypedArrayLengthNode()
-
-
Method Details
-
execute
public abstract int execute(com.oracle.truffle.api.nodes.Node node, JSTypedArrayObject typedArrayObj, JSContext context) -
doFixedLength
-
doAutoLength
protected static int doAutoLength(com.oracle.truffle.api.nodes.Node node, JSTypedArrayObject typedArray, JSContext context, ArrayBufferByteLengthNode getByteLengthNode) -
doOutOfBounds
-
create
-