diff options
Diffstat (limited to 'deps/v8/test/js-perf-test/Array/find.js')
-rw-r--r-- | deps/v8/test/js-perf-test/Array/find.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/deps/v8/test/js-perf-test/Array/find.js b/deps/v8/test/js-perf-test/Array/find.js index 9b9a19f1c4..580d646a30 100644 --- a/deps/v8/test/js-perf-test/Array/find.js +++ b/deps/v8/test/js-perf-test/Array/find.js @@ -51,13 +51,13 @@ function NaiveSetup() { DefineHigherOrderTests([ // name, test function, setup function, user callback - "NaiveFindReplacement", Naive, NaiveSetup, v => v === max_index, - "DoubleFind", mc("find"), DoubleSetup, v => v === max_index + 0.5, - "SmiFind", mc("find"), SmiSetup, v => v === max_index, - "FastFind", mc("find"), FastSetup, v => v === `value ${max_index}`, - "GenericFind", mc("find", true), ObjectSetup, v => v === max_index, - "OptFastFind", OptFast, FastSetup, undefined, - "OptUnreliableFind", OptUnreliable, FastSetup, v => v === max_index + ['NaiveFindReplacement', Naive, NaiveSetup, v => v === max_index], + ['DoubleFind', newClosure('find'), DoubleSetup, v => v === max_index + 0.5], + ['SmiFind', newClosure('find'), SmiSetup, v => v === max_index], + ['FastFind', newClosure('find'), FastSetup, v => v === `value ${max_index}`], + ['GenericFind', newClosure('find', true), ObjectSetup, v => v === max_index], + ['OptFastFind', OptFast, FastSetup, undefined], + ['OptUnreliableFind', OptUnreliable, FastSetup, v => v === max_index] ]); })(); |