diff options
Diffstat (limited to 'deps/v8/test/js-perf-test/Array/find-index.js')
-rw-r--r-- | deps/v8/test/js-perf-test/Array/find-index.js | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/deps/v8/test/js-perf-test/Array/find-index.js b/deps/v8/test/js-perf-test/Array/find-index.js index 716aa710bb4..1029b261248 100644 --- a/deps/v8/test/js-perf-test/Array/find-index.js +++ b/deps/v8/test/js-perf-test/Array/find-index.js @@ -51,13 +51,22 @@ function NaiveSetup() { DefineHigherOrderTests([ // name, test function, setup function, user callback - "NaiveFindIndexReplacement", Naive, NaiveSetup, v => v === max_index, - "DoubleFindIndex", mc("findIndex"), DoubleSetup, v => v === max_index + 0.5, - "SmiFindIndex", mc("findIndex"), SmiSetup, v => v === max_index, - "FastFindIndex", mc("findIndex"), FastSetup, v => v === `value ${max_index}`, - "GenericFindIndex", mc("findIndex", true), ObjectSetup, v => v === max_index, - "OptFastFindIndex", OptFast, FastSetup, undefined, - "OptUnreliableFindIndex", OptUnreliable, FastSetup, v => v === max_index + ['NaiveFindIndexReplacement', Naive, NaiveSetup, v => v === max_index], + [ + 'DoubleFindIndex', newClosure('findIndex'), DoubleSetup, + v => v === max_index + 0.5 + ], + ['SmiFindIndex', newClosure('findIndex'), SmiSetup, v => v === max_index], + [ + 'FastFindIndex', newClosure('findIndex'), FastSetup, + v => v === `value ${max_index}` + ], + [ + 'GenericFindIndex', newClosure('findIndex', true), ObjectSetup, + v => v === max_index + ], + ['OptFastFindIndex', OptFast, FastSetup, undefined], + ['OptUnreliableFindIndex', OptUnreliable, FastSetup, v => v === max_index] ]); })(); |