Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:sum

100 function sum(a, b) { return a + b; }
113 simpleArray, sum, 0);
134 testReduce("reduce", "EmptyReduceSum", 0, [], [], sum, 0);
139 testReduce("reduce", "EmptyReduceSumNoInit", 0, [], [0], sum);
150 simpleSparseArray, sum, 0);
171 testReduce("reduce", "EmptySparseReduceSumNoInit", 0, [], [,,0,,], sum);
191 verySparseArray, sum, 0);
216 verySparseArray, sum);
241 simpleArray, sum, 0);
262 testReduce("reduceRight", "EmptyReduceRightSum", 0, [], [], sum, 0);
268 testReduce("reduceRight", "EmptyReduceRightSumNoInit", 0, [], [0], sum);
279 simpleSparseArray, sum, 0);
301 0, [], [,,0,,], sum);
322 verySparseArray, sum, 0);
347 verySparseArray, sum);
373 undefArray, sum, 0);
378 ], undefArray, sum, 0);
382 ], undefArray, sum);
386 ], undefArray, sum);
403 ], arrayPlus, sum, 0);
409 ], arrayPlus, sum, 0);
440 [].reduce(sum);
452 [].reduceRight(sum);
464 [,,,].reduce(sum);
476 [,,,].reduceRight(sum);