public abstract static class ArrayPrototypeBuiltins.JSArrayReduceNode extends ArrayPrototypeBuiltins.ArrayForEachIndexCallOperation
shouldCheckHasPropertyArrayPrototypeBuiltins.ArrayForEachIndexCallOperation.DefaultCallbackNodeJSBuiltinNode.Inlineable, JSBuiltinNode.InlinedTHROW_ERRORerrorBranch, isTypedArrayImplementationARGUMENTSINTERMEDIATE_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,
com.oracle.truffle.api.profiles.InlinedBranchProfile findInitialValueBranch) |
protected static RuntimeException |
reduceNoInitialValueError() |
forEachIndexCall, shouldCheckHasPropertyarrayCreate, createEmpty, hasProperty, hasProperty, nextElementIndex, previousElementIndex, read, read, setLength, setLength, setLength, throwLengthError, write, write, writeOwn, writeOwncheckCallbackIsFunction, checkHasDetachedBuffer, getArraySpeciesConstructorNode, getLength, isCallable, reportLoopCount, reportLoopCount, toObject, toObjectOrValidateTypedArray, validateTypedArraycopyUninitialized, countsTowardsStackTraceLimit, createBuiltin, getArguments, getBuiltin, getContext, getNodeObject, hasTag, isCallerSensitive, isInlineable, isSplitImmediately, tryCreateInlinedaddCallTag, addExpressionTag, addRootBodyTag, addStatementTag, cloneUninitialized, cloneUninitialized, copy, createWrapper, execute, executeBoolean, executeDouble, executeInt, executeLong, executeVoid, expressionToString, findBlockScopeNode, getSourceSection, hasSourceSection, isInstrumentable, isResultAlwaysOfType, onReplace, removeSourceSection, setSourceSection, setSourceSection, toString, transferSourceSection, transferSourceSectionAddExpressionTag, transferSourceSectionAndTagsgetLanguage, getRealm, hasOverloadedOperatorsaccept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecializeprotected Object reduce(Object thisObj, Object callback, Object[] initialValueOpt, com.oracle.truffle.api.profiles.InlinedBranchProfile findInitialValueBranch)
protected 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()