Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Unified Diff: test/mjsunit/regress/regress-543994.js

Issue 1412443003: [turbofan] Introduce lazy bailout, masked as a call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Enable test Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698