Lines Matching defs:accumulator
1483 JSHandle<JSTaggedValue> &thisObjVal, int64_t k, int64_t len, JSMutableHandle<JSTaggedValue> &accumulator,
1497 const uint32_t argsLength = 4; // 4: «accumulator, kValue, k, O»
1502 info->SetCallArg(accumulator.GetTaggedValue(), kValue.GetTaggedValue(), key.GetTaggedValue(),
1506 accumulator.Update(callResult);
1510 return accumulator.GetTaggedValue();
1552 // a. Set accumulator to initialValue.
1560 // 1. Let accumulator be Get(O, Pk).
1561 // 2. ReturnIfAbrupt(accumulator).
1565 JSMutableHandle<JSTaggedValue> accumulator(thread, JSTaggedValue::Undefined());
1567 accumulator.Update(GetCallArg(argv, 1).GetTaggedValue());
1575 accumulator.Update(JSSharedArray::FastGetPropertyByValue(thread, thisObjVal, k).GetTaggedValue());
1581 THROW_TYPE_ERROR_AND_RETURN(thread, "accumulator can't be initialized.", JSTaggedValue::Exception());
1586 JSStableArray::Reduce(thread, thisObjHandle, callbackFnHandle, accumulator, k, len);
1589 auto opResult = ReduceUnStableJSArray(thread, thisHandle, thisObjVal, k, len, accumulator, callbackFnHandle);