Class JSConstructTypedArrayNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.JavaScriptNode
com.oracle.truffle.js.nodes.function.AbstractBodyNode
com.oracle.truffle.js.nodes.function.JSBuiltinNode
com.oracle.truffle.js.builtins.JSConstructTypedArrayNode
- All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode,com.oracle.truffle.api.nodes.NodeInterface,Cloneable
The %TypedArray% intrinsic constructor function object (ES6 22.2.1).
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.js.nodes.function.JSBuiltinNode
JSBuiltinNode.Inlineable, JSBuiltinNode.InlinedNested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.ChildrenNested classes/interfaces inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
com.oracle.truffle.api.instrumentation.InstrumentableNode.WrapperNode -
Field Summary
Fields inherited from class com.oracle.truffle.js.nodes.function.JSBuiltinNode
ARGUMENTSFields inherited from class com.oracle.truffle.js.nodes.JavaScriptNode
INTERMEDIATE_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JSDynamicObjectdoArrayBuffer(JSDynamicObject newTarget, JSArrayBufferObject.Heap arrayBuffer, Object byteOffset0, Object length0, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthIsUndefined) %TypedArray%(buffer[, byteOffset[, length]]).protected JSDynamicObjectdoDirectArrayBuffer(JSDynamicObject newTarget, JSArrayBufferObject.Direct arrayBuffer, Object byteOffset0, Object length0, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthIsUndefined) protected JSDynamicObjectdoEmpty(JSDynamicObject newTarget, JSDynamicObject arg0, Object byteOffset0, Object length0) %TypedArray%().protected JSDynamicObjectdoForeignObject(JSDynamicObject newTarget, Object object, Object byteOffset0, Object length0, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.interop.InteropLibrary interop, WriteElementNode writeOwnNode, ImportValueNode importValue, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthIsUndefined) protected JSDynamicObjectdoInteropArrayBuffer(JSDynamicObject newTarget, JSArrayBufferObject.Interop arrayBuffer, Object byteOffset0, Object length0, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthIsUndefined, com.oracle.truffle.api.interop.InteropLibrary bufferInterop) TypedArray(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length).protected JSDynamicObjectdoIntLength(JSDynamicObject newTarget, int length, Object byteOffset0, Object length0) %TypedArray%(length).protected JSDynamicObjectdoLength(JSDynamicObject newTarget, Object arg0, Object byteOffset0, Object length0) %TypedArray%(length).protected JSDynamicObjectdoObject(JSDynamicObject newTarget, JSObject object, Object byteOffset0, Object length0, com.oracle.truffle.api.nodes.Node node, GetMethodNode getIteratorMethodNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isIterableProfile, WriteElementNode writeOwnNode, GetIteratorFromMethodNode getIteratorFromMethodNode, IterableToListNode iterableToListNode, JSGetLengthNode getLengthNode, ReadElementNode readNode) %TypedArray%(object).protected JSDynamicObjectdoSharedArrayBuffer(JSDynamicObject newTarget, JSArrayBufferObject.Shared arrayBuffer, Object byteOffset0, Object length0, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthIsUndefined) TypedArray(SharedArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length).protected JSDynamicObjectdoTypedArray(JSDynamicObject newTarget, JSTypedArrayObject arrayBufferView, Object byteOffset0, Object length0, com.oracle.truffle.api.profiles.InlinedConditionProfile bulkCopyProfile) %TypedArray%(typedArray).protected JSDynamicObjectdoUndefinedNewTarget(Object newTarget, Object arg0, Object byteOffset0, Object length0) Methods inherited from class com.oracle.truffle.js.nodes.function.JSBuiltinNode
copyUninitialized, countsTowardsStackTraceLimit, createBuiltin, getArguments, getBuiltin, getContext, getNodeObject, hasTag, isCallerSensitive, isInlineable, isSplitImmediately, tryCreateInlinedMethods inherited from class com.oracle.truffle.js.nodes.function.AbstractBodyNode
executeBoolean, executeDouble, executeInt, executeVoidMethods inherited from class com.oracle.truffle.js.nodes.JavaScriptNode
addCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsMethods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode
getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperatorsMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.api.instrumentation.InstrumentableNode
findNearestNodeAt, findNearestNodeAt, materializeInstrumentableNodes
-
Constructor Details
-
JSConstructTypedArrayNode
-
-
Method Details
-
doArrayBuffer
protected JSDynamicObject doArrayBuffer(JSDynamicObject newTarget, JSArrayBufferObject.Heap arrayBuffer, Object byteOffset0, Object length0, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthIsUndefined) %TypedArray%(buffer[, byteOffset[, length]]). TypedArray(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length). Create a new TypedArray object using the passed ArrayBuffer for its storage. Optional byteOffset and length can be used to limit the section of the buffer referenced. The byteOffset indicates the offset in bytes from the start of the ArrayBuffer, and the length is the count of elements from the offset that this TypedArray will reference. If both byteOffset and length are omitted, the TypedArray spans the entire ArrayBuffer range. If the length is omitted, the TypedArray extends from the given byteOffset until the end of the ArrayBuffer. The given byteOffset must be a multiple of the element size of the specific type, otherwise an exception is raised. If a given byteOffset and length references an area beyond the end of the ArrayBuffer an exception is raised. If length is not explicitly specified, the length of the ArrayBuffer minus the byteOffset must be a multiple of the element size of the specific type, or an exception is raised. -
doDirectArrayBuffer
protected JSDynamicObject doDirectArrayBuffer(JSDynamicObject newTarget, JSArrayBufferObject.Direct arrayBuffer, Object byteOffset0, Object length0, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthIsUndefined) -
doInteropArrayBuffer
protected JSDynamicObject doInteropArrayBuffer(JSDynamicObject newTarget, JSArrayBufferObject.Interop arrayBuffer, Object byteOffset0, Object length0, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthIsUndefined, com.oracle.truffle.api.interop.InteropLibrary bufferInterop) TypedArray(ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long length). Create a new TypedArray object using the passed InteropArrayBuffer for its storage. As with standard ArrayBuffer, optional parameters (byteOffset and length) can be used to limit the section of the buffer referenced. -
doTypedArray
protected JSDynamicObject doTypedArray(JSDynamicObject newTarget, JSTypedArrayObject arrayBufferView, Object byteOffset0, Object length0, com.oracle.truffle.api.profiles.InlinedConditionProfile bulkCopyProfile) %TypedArray%(typedArray). -
doEmpty
protected JSDynamicObject doEmpty(JSDynamicObject newTarget, JSDynamicObject arg0, Object byteOffset0, Object length0) %TypedArray%(). This description applies only if the %TypedArray% function is called with no arguments. -
doIntLength
protected JSDynamicObject doIntLength(JSDynamicObject newTarget, int length, Object byteOffset0, Object length0) %TypedArray%(length). -
doLength
protected JSDynamicObject doLength(JSDynamicObject newTarget, Object arg0, Object byteOffset0, Object length0) %TypedArray%(length). This description applies only if the %TypedArray% function is called with at least one argument and the Type of the first argument is not Object. -
doObject
protected JSDynamicObject doObject(JSDynamicObject newTarget, JSObject object, Object byteOffset0, Object length0, com.oracle.truffle.api.nodes.Node node, GetMethodNode getIteratorMethodNode, com.oracle.truffle.api.profiles.InlinedConditionProfile isIterableProfile, WriteElementNode writeOwnNode, GetIteratorFromMethodNode getIteratorFromMethodNode, IterableToListNode iterableToListNode, JSGetLengthNode getLengthNode, ReadElementNode readNode) %TypedArray%(object). This description applies only if the %TypedArray% function is called with at least one argument and the Type of the first argument is Object and that object does not have either a [[TypedArrayName]] or an [[ArrayBufferData]] internal slot. -
doForeignObject
protected JSDynamicObject doForeignObject(JSDynamicObject newTarget, Object object, Object byteOffset0, Object length0, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.interop.InteropLibrary interop, WriteElementNode writeOwnNode, ImportValueNode importValue, com.oracle.truffle.api.profiles.InlinedConditionProfile lengthIsUndefined) -
doUndefinedNewTarget
protected JSDynamicObject doUndefinedNewTarget(Object newTarget, Object arg0, Object byteOffset0, Object length0)
-