X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..HEAD:/tests/stress/new-array-storage-array-with-size.js diff --git a/tests/stress/new-array-storage-array-with-size.js b/tests/stress/new-array-storage-array-with-size.js index 8d61be9..af3a239 100644 --- a/tests/stress/new-array-storage-array-with-size.js +++ b/tests/stress/new-array-storage-array-with-size.js @@ -4,6 +4,12 @@ function foo(x) { noInline(foo); +// Warm up up to create array storage. +for (var i = 0; i < 10000; ++i) { + var array = foo(10); + array.__defineSetter__(0, function(v) { }); +} + function test(size) { var result = foo(size); if (result.length != size) @@ -19,5 +25,5 @@ function test(size) { } for (var i = 0; i < 100000; ++i) { - test(1000000); + test(10); }