Lines Matching defs:accumulator

1701     JSHandle<JSTaggedValue> &thisObjVal, int64_t k, int64_t len, JSMutableHandle<JSTaggedValue> &accumulator,
1715 const uint32_t argsLength = 4; // 4: «accumulator, kValue, k, O»
1720 info->SetCallArg(accumulator.GetTaggedValue(), kValue.GetTaggedValue(), key.GetTaggedValue(),
1724 accumulator.Update(callResult);
1729 return accumulator.GetTaggedValue();
1779 // a. Set accumulator to initialValue.
1787 // 1. Let accumulator be Get(O, Pk).
1788 // 2. ReturnIfAbrupt(accumulator).
1792 JSMutableHandle<JSTaggedValue> accumulator(thread, JSTaggedValue::Undefined());
1794 accumulator.Update(GetCallArg(argv, 1).GetTaggedValue());
1802 accumulator.Update(JSArray::FastGetPropertyByValue(thread, thisObjVal, k).GetTaggedValue());
1808 THROW_TYPE_ERROR_AND_RETURN(thread, "accumulator can't be initialized.", JSTaggedValue::Exception());
1813 JSStableArray::Reduce(thread, thisObjHandle, callbackFnHandle, accumulator, k, len);
1816 return ReduceUnStableJSArray(thread, thisHandle, thisObjVal, k, len, accumulator, callbackFnHandle);
1870 // a. Set accumulator to initialValue.
1878 // 1. Let accumulator be Get(O, Pk).
1879 // 2. ReturnIfAbrupt(accumulator).
1882 JSMutableHandle<JSTaggedValue> accumulator(thread, JSTaggedValue::Undefined());
1884 accumulator.Update(GetCallArg(argv, 1).GetTaggedValue());
1891 accumulator.Update(JSArray::FastGetPropertyByValue(thread, thisObjVal, k).GetTaggedValue());
1897 THROW_TYPE_ERROR_AND_RETURN(thread, "accumulator can't be initialized.", JSTaggedValue::Exception());
1908 // iii. Let accumulator be Call(callbackfn, undefined, «accumulator, kValue, k, O»).
1909 // iv. ReturnIfAbrupt(accumulator).
1917 callbackFnHandle, accumulator, thisArgHandle, k);
1920 return accumulator.GetTaggedValue();
1931 const uint32_t argsLength = 4; // 4: «accumulator, kValue, k, O»
1936 info->SetCallArg(accumulator.GetTaggedValue(), kValue.GetTaggedValue(), key.GetTaggedValue(),
1940 accumulator.Update(callResult);
1945 // 11. Return accumulator.
1946 return accumulator.GetTaggedValue();