public abstract static class ArrayPrototypeBuiltins.JSArrayReduceNode extends ArrayPrototypeBuiltins.ArrayForEachIndexCallOperation
ArrayPrototypeBuiltins.ArrayForEachIndexCallOperation.DefaultCallbackNodeJSBuiltinNode.Inlineable, JSBuiltinNode.InlinedTHROW_ERRORerrorBranch, isTypedArrayImplementationINTERMEDIATE_VALUE| Constructor and Description |
|---|
JSArrayReduceNode(JSContext context,
JSBuiltin builtin,
boolean isTypedArrayImplementation,
boolean isForward) |
| Modifier and Type | Method and Description |
|---|---|
protected Pair<Long,Object> |
findInitialValue(Object arrayObj,
long fromIndex,
long length) |
protected boolean |
isForward() |
protected ForEachIndexCallNode.CallbackNode |
makeCallbackNode() |
protected ForEachIndexCallNode.MaybeResultNode |
makeMaybeResultNode() |
protected Object |
reduce(Object thisObj,
Object callback,
Object... initialValueOpt) |
protected static RuntimeException |
reduceNoInitialValueError() |
forEachIndexCallhasProperty, hasProperty, nextElementIndex, previousElementIndex, read, read, setLength, setLength, setLength, throwLengthError, write, write, writeOwn, writeOwncheckCallbackIsFunction, checkHasDetachedBuffer, getArraySpeciesConstructorNode, getLength, isCallable, reportLoopCount, reportLoopCount, toObject, validateTypedArraycopyUninitialized, createBuiltin, getArguments, getBuiltin, getContext, getNodeObject, hasTag, isCallerSensitive, isInlineable, tryCreateInlinedaddCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, executeBoolean, executeDouble, executeInt, executeLong, executeSafeInteger, executeString, executeVoid, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, lookupContextReference, lookupLanguageReference, notifyInserted, replace, replace, reportPolymorphicSpecializeprotected boolean isForward()
isForward in class ArrayPrototypeBuiltins.ArrayForEachIndexCallOperationprotected final Pair<Long,Object> findInitialValue(Object arrayObj, long fromIndex, long length)
protected ForEachIndexCallNode.CallbackNode makeCallbackNode()
makeCallbackNode in class ArrayPrototypeBuiltins.ArrayForEachIndexCallOperationprotected ForEachIndexCallNode.MaybeResultNode makeMaybeResultNode()
makeMaybeResultNode in class ArrayPrototypeBuiltins.ArrayForEachIndexCallOperationprotected static RuntimeException reduceNoInitialValueError()