Index: test/mjsunit/ignition/osr-from-bytecode.js |
diff --git a/test/mjsunit/compiler/regress-630611.js b/test/mjsunit/ignition/osr-from-bytecode.js |
similarity index 57% |
copy from test/mjsunit/compiler/regress-630611.js |
copy to test/mjsunit/ignition/osr-from-bytecode.js |
index be75777ba72aeeb0922ac95a0c39f50759e60b85..d4f40bad796783d080e0d01c5928b88fdf240518 100644 |
--- a/test/mjsunit/compiler/regress-630611.js |
+++ b/test/mjsunit/ignition/osr-from-bytecode.js |
@@ -2,15 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-var global = 1; |
-global = 2; |
+// Flags: --allow-natives-syntax --ignition --ignition-osr --turbo-from-bytecode |
function f() { |
- var o = { a : 1 }; |
- global = "a"; |
- for (var i = global; i < 2; i++) { |
- delete o[i]; |
+ for (var i = 0; i < 10; i++) { |
+ if (i == 5) %OptimizeOsr(); |
} |
} |
- |
f(); |