Class JSArrayDeleteIndexNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.array.JSArrayDeleteIndexNode
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
Deletes an index from a JS array. Does not shrink the array.
Used by
delete.-
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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JSArrayDeleteIndexNodecreate(boolean strict) protected booleandoCached(JSDynamicObject array, ScriptArray arrayType, long index, ScriptArray cachedArrayType) protected booleandoUncached(JSDynamicObject array, ScriptArray arrayType, long index) abstract booleanexecute(JSDynamicObject array, ScriptArray arrayType, long index) Methods inherited from class com.oracle.truffle.js.nodes.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
-
Field Details
-
strict
protected final boolean strict
-
-
Constructor Details
-
JSArrayDeleteIndexNode
protected JSArrayDeleteIndexNode(boolean strict)
-
-
Method Details
-
create
-
execute
-
doCached
protected boolean doCached(JSDynamicObject array, ScriptArray arrayType, long index, ScriptArray cachedArrayType) -
doUncached
-