diff options
Diffstat (limited to 'deps/v8/test/js-perf-test/Array/reduce-right.js')
-rw-r--r-- | deps/v8/test/js-perf-test/Array/reduce-right.js | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/deps/v8/test/js-perf-test/Array/reduce-right.js b/deps/v8/test/js-perf-test/Array/reduce-right.js index ed00f5ac277..c643c2b3839 100644 --- a/deps/v8/test/js-perf-test/Array/reduce-right.js +++ b/deps/v8/test/js-perf-test/Array/reduce-right.js @@ -27,12 +27,22 @@ function OptUnreliableReduceRight() { DefineHigherOrderTests([ // name, test function, setup function, user callback - "DoubleReduceRight", mc("reduceRight"), DoubleSetup, (p, v, i, o) => p + v, - "SmiReduceRight", mc("reduceRight"), SmiSetup, (p, v, i, a) => p + 1, - "FastReduceRight", mc("reduceRight"), FastSetup, (p, v, i, a) => p + v, - "OptFastReduceRight", OptFastReduceRight, FastSetup, undefined, - "OptUnreliableReduceRight", OptUnreliableReduceRight, FastSetup, - (p, v, i, a) => p + v + [ + 'DoubleReduceRight', newClosure('reduceRight'), DoubleSetup, + (p, v, i, o) => p + v + ], + [ + 'SmiReduceRight', newClosure('reduceRight'), SmiSetup, (p, v, i, a) => p + 1 + ], + [ + 'FastReduceRight', newClosure('reduceRight'), FastSetup, + (p, v, i, a) => p + v + ], + ['OptFastReduceRight', OptFastReduceRight, FastSetup, undefined], + [ + 'OptUnreliableReduceRight', OptUnreliableReduceRight, FastSetup, + (p, v, i, a) => p + v + ] ]); })(); |