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
protected static class ArrayPrototypeBuiltins.ArraySpeciesConstructorNode
extends JavaScriptBaseNode
-
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 static ArrayPrototypeBuiltins.ArraySpeciesConstructorNodeprotected 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 constr, Object... args) 22.2.4.6 TypedArrayCreate().protected final JSTypedArrayObjecttypedArrayCreateSameType(JSTypedArrayObject thisObj, Object... args) protected final JSTypedArrayObjecttypedArraySpeciesCreate(JSTypedArrayObject thisObj, Object... args) 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
-
ArraySpeciesConstructorNode
-
-
Method Details
-
create
protected 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
22.2.4.6 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.
-