| D | builtins_typedarray_test.cpp | 117 int accumulator = GetCallArg(argv, 0)->GetInt(); in TestMapFunc() local 118 accumulator = accumulator * 2; // 2 : mapped to 2 times the original value in TestMapFunc() 119 return BuiltinsBase::GetTaggedInt(accumulator); in TestMapFunc() 148 int accumulator = GetCallArg(argv, 0)->GetInt(); in TestReduceFunc() local 149 accumulator = accumulator + GetCallArg(argv, 1)->GetInt(); in TestReduceFunc() 150 return BuiltinsBase::GetTaggedInt(accumulator); in TestReduceFunc() 155 int accumulator = GetCallArg(argv, 0)->GetInt(); in TestReduceRightFunc() local 156 accumulator = accumulator + GetCallArg(argv, 1)->GetInt(); in TestReduceRightFunc() 157 return BuiltinsBase::GetTaggedInt(accumulator); in TestReduceRightFunc()
|