Class ArrayPrototypeBuiltins.FlattenIntoArrayNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.builtins.ArrayPrototypeBuiltins.FlattenIntoArrayNode
- 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
ConstructorsModifierConstructorDescriptionprotectedFlattenIntoArrayNode(JSContext context, boolean withMapCallback) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract longexecuteLong(Object target, Object source, long sourceLen, long start, long depth, Object callback, Object thisArg) protected longflatten(Object resultArray, Object source, long sourceLen, long start, long depth, Object callback, Object thisArg, JSToObjectNode toObjectNode) protected final voidforEachIndexCall(Object arrayObj, Object callbackObj, Object thisArg, long fromIndex, long length, Object initialResult) 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
-
FlattenIntoArrayNode
-
-
Method Details
-
create
public static ArrayPrototypeBuiltins.FlattenIntoArrayNode create(JSContext context, boolean withCallback) -
executeLong
-
flatten
protected long flatten(Object resultArray, Object source, long sourceLen, long start, long depth, Object callback, Object thisArg, JSToObjectNode toObjectNode) -
forEachIndexCall
-