Class ArrayBufferViewGetByteLengthNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.array.ArrayBufferViewGetByteLengthNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
Gets the byteLength of a typed array. Specializes on the type of the underlying ArrayBuffer.
- See Also:
-
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 TypeMethodDescriptionabstract intexecuteInt(com.oracle.truffle.api.nodes.Node node, JSTypedArrayObject obj, JSContext context) protected static TypedArrayprotected static intgetByteLength(com.oracle.truffle.api.nodes.Node node, JSTypedArrayObject typedArray, JSContext context, TypedArrayLengthNode typedArrayLengthNode) protected static intgetByteLengthCached(JSTypedArrayObject obj, JSContext context, TypedArray cachedArray) Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplaceMethods 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, toString
-
Constructor Details
-
ArrayBufferViewGetByteLengthNode
protected ArrayBufferViewGetByteLengthNode()
-
-
Method Details
-
executeInt
public abstract int executeInt(com.oracle.truffle.api.nodes.Node node, JSTypedArrayObject obj, JSContext context) -
getByteLengthCached
protected static int getByteLengthCached(JSTypedArrayObject obj, JSContext context, TypedArray cachedArray) -
getByteLength
protected static int getByteLength(com.oracle.truffle.api.nodes.Node node, JSTypedArrayObject typedArray, JSContext context, TypedArrayLengthNode typedArrayLengthNode) -
getArrayType
-