diff options
Diffstat (limited to 'deps/v8/test/mjsunit/compiler/regress-669517.js')
-rw-r--r-- | deps/v8/test/mjsunit/compiler/regress-669517.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/compiler/regress-669517.js b/deps/v8/test/mjsunit/compiler/regress-669517.js index 1905260978..d6bbfd8cd1 100644 --- a/deps/v8/test/mjsunit/compiler/regress-669517.js +++ b/deps/v8/test/mjsunit/compiler/regress-669517.js @@ -6,12 +6,14 @@ (function() { "use asm"; - return function() { + var f = function() { for (var i = 0; i < 10; i++) { if (i == 5) { %OptimizeOsr(); } } with (Object()); - } + }; + %PrepareFunctionForOptimization(f); + return f; })()(); |