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 -
Field Summary
Fields -
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) protected final ObjectforEachIndexCall(Object arrayObj, Object callbackObj, Object thisArg, long fromIndex, long length, Object initialResult) protected longprotected ForEachIndexCallNode.CallbackNodeprotected ForEachIndexCallNode.MaybeResultNodeprotected final ObjectMethods 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
-
Field Details
-
context
-
withMapCallback
protected final boolean withMapCallback
-
-
Constructor Details
-
FlattenIntoArrayNode
-
-
Method Details
-
create
public static ArrayPrototypeBuiltins.FlattenIntoArrayNode create(JSContext context, boolean withCallback) -
executeLong
-
flatten
-
forEachIndexCall
-
makeCallbackNode
-
toObject
-
getLength
-
makeMaybeResultNode
-