Index: test/mjsunit/regress/regress-543994.js |
diff --git a/test/mjsunit/compiler/eager-deopt-simple.js b/test/mjsunit/regress/regress-543994.js |
similarity index 51% |
copy from test/mjsunit/compiler/eager-deopt-simple.js |
copy to test/mjsunit/regress/regress-543994.js |
index 067400cfc629bdd28b58540f45bcc9dc1c36ecbb..e0d6010287fd0224e923d8f01a05ca60f4192baf 100644 |
--- a/test/mjsunit/compiler/eager-deopt-simple.js |
+++ b/test/mjsunit/regress/regress-543994.js |
@@ -2,17 +2,18 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --allow-natives-syntax |
+// Flass: --allow-natives-syntax --always-opt --gc-interval=163 --stress-compaction |
-function g(a, b, c) { |
- return a + b + c; |
+try { a = f(); |
+} catch(e) { |
} |
- |
+var i = 0; |
function f() { |
- return g(1, (%_DeoptimizeNow(), 2), 3); |
+ try { |
+ f(); |
+ } catch(e) { |
+ i++; |
+ []; |
+ } |
} |
- |
-f(); |
f(); |
-%OptimizeFunctionOnNextCall(f); |
-assertEquals(6, f()); |