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(JSContext context, boolean isTypedArrayImplementation) -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectarraySpeciesCreate(Object originalArray, long length) ES6, 9.4.2.3 ArraySpeciesCreate(originalArray, length).protected Objectprotected final ObjectcreateEmptyContainer(Object thisObj, long size) protected static final JSFunctionObjectgetDefaultConstructor(JSRealm realm, JSTypedArrayObject thisObj) protected final booleanprotected final ObjectspeciesConstructor(JSDynamicObject thisObj, JSDynamicObject defaultConstructor) Implement 7.3.20 SpeciesConstructor.final JSTypedArrayObjecttypedArrayCreate(Object constructor, int length) final JSTypedArrayObjecttypedArrayCreate(Object constructor, Object... args) TypedArrayCreateFromConstructor(constructor, argumentList).protected final JSTypedArrayObjecttypedArrayCreateSameType(JSTypedArrayObject thisObj, Object... args) protected final JSTypedArrayObjecttypedArraySpeciesCreate(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
-
-
Method Details
-
create
public static ArrayPrototypeBuiltins.ArraySpeciesConstructorNode create(JSContext context, boolean isTypedArrayImplementation) -
createEmptyContainer
-
typedArraySpeciesCreate
protected final JSTypedArrayObject typedArraySpeciesCreate(JSTypedArrayObject thisObj, Object... args) -
typedArrayCreateSameType
protected final JSTypedArrayObject typedArrayCreateSameType(JSTypedArrayObject thisObj, Object... args) -
typedArrayCreate
TypedArrayCreateFromConstructor(constructor, argumentList). -
typedArrayCreate
-
arraySpeciesCreate
-
isArray
-
construct
-
getDefaultConstructor
protected static final JSFunctionObject getDefaultConstructor(JSRealm realm, JSTypedArrayObject thisObj) -
speciesConstructor
protected final Object speciesConstructor(JSDynamicObject thisObj, JSDynamicObject defaultConstructor) Implement 7.3.20 SpeciesConstructor.
-