Class ArrayPrototypeBuiltins.ArraySpeciesConstructorNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.builtins.ArrayPrototypeBuiltins.ArraySpeciesConstructorNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable
- Enclosing class:
ArrayPrototypeBuiltins
-
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
ConstructorsModifierConstructorDescriptionprotectedArraySpeciesConstructorNode(boolean isTypedArrayImplementation) -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectarraySpeciesCreate(Object originalArray, long length) ES6, 9.4.2.3 ArraySpeciesCreate(originalArray, length).protected Objectcreate(boolean isTypedArrayImplementation) protected final ObjectcreateEmptyContainer(Object thisObj, long size) protected final ObjectcreateEmptyContainer(Object thisObj, long size, boolean writeAccessMode) protected static final JSFunctionObjectgetDefaultConstructor(JSRealm realm, JSTypedArrayObject thisObj) protected final ObjectspeciesConstructor(JSDynamicObject thisObj, JSFunctionObject defaultConstructor) final JSTypedArrayObjecttypedArrayCreate(Object constructor, int length) final JSTypedArrayObjecttypedArrayCreate(Object constructor, Object... args) TypedArrayCreateFromConstructor(constructor, argumentList).final JSTypedArrayObjecttypedArrayCreateInWriteMode(Object constructor, Object... args) protected final JSTypedArrayObjecttypedArrayCreateSameType(JSTypedArrayObject thisObj, Object... args) protected final JSTypedArrayObjecttypedArraySpeciesCreate(JSTypedArrayObject thisObj, Object... args) protected final JSTypedArrayObjecttypedArraySpeciesCreateInWriteMode(JSTypedArrayObject thisObj, Object... args) 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
-
ArraySpeciesConstructorNode
protected ArraySpeciesConstructorNode(boolean isTypedArrayImplementation)
-
-
Method Details
-
create
public static ArrayPrototypeBuiltins.ArraySpeciesConstructorNode create(boolean isTypedArrayImplementation) -
createEmptyContainer
-
createEmptyContainer
-
typedArraySpeciesCreate
protected final JSTypedArrayObject typedArraySpeciesCreate(JSTypedArrayObject thisObj, Object... args) -
typedArraySpeciesCreateInWriteMode
protected final JSTypedArrayObject typedArraySpeciesCreateInWriteMode(JSTypedArrayObject thisObj, Object... args) -
typedArrayCreateSameType
protected final JSTypedArrayObject typedArrayCreateSameType(JSTypedArrayObject thisObj, Object... args) -
typedArrayCreate
TypedArrayCreateFromConstructor(constructor, argumentList). -
typedArrayCreateInWriteMode
-
typedArrayCreate
-
arraySpeciesCreate
-
construct
-
getDefaultConstructor
protected static final JSFunctionObject getDefaultConstructor(JSRealm realm, JSTypedArrayObject thisObj) -
speciesConstructor
protected final Object speciesConstructor(JSDynamicObject thisObj, JSFunctionObject defaultConstructor)
-