Class GetViewByteLengthNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.array.GetViewByteLengthNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
Gets the byteLength of a DataView. 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 GetViewByteLengthNodecreate()protected final intdoAutoLength(JSDataViewObject dataView, JSContext context, ArrayBufferByteLengthNode getByteLengthNode) protected static intdoFixedLength(JSDataViewObject dataView, JSContext context) protected static intdoOutOfBounds(JSDataViewObject dataView, JSContext context) abstract intexecute(JSDataViewObject 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
-
GetViewByteLengthNode
public GetViewByteLengthNode()
-
-
Method Details
-
execute
-
doFixedLength
-
doAutoLength
protected final int doAutoLength(JSDataViewObject dataView, JSContext context, ArrayBufferByteLengthNode getByteLengthNode) -
doOutOfBounds
-
create
-