diff options
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-447756.js')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-447756.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-447756.js b/deps/v8/test/mjsunit/regress/regress-447756.js index 1fc7518c130..55fd2bd0fc4 100644 --- a/deps/v8/test/mjsunit/regress/regress-447756.js +++ b/deps/v8/test/mjsunit/regress/regress-447756.js @@ -42,7 +42,8 @@ function TestOptimizedCode() { assertSame(Infinity, 1 / a1.byteOffset); } -%OptimizeFunctionOnNextCall(Uint8Array); -for (var i = 0; i < 1000; i++) { - TestOptimizedCode(); -} +%PrepareFunctionForOptimization(TestOptimizedCode); +TestOptimizedCode(); +TestOptimizedCode(); +%OptimizeFunctionOnNextCall(TestOptimizedCode); +TestOptimizedCode(); |