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

Unified Diff: test/mjsunit/compiler/regress-491578.js

Issue 1161583002: [turbofan] Properly kill Terminate nodes when removing loops. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 | « src/compiler/control-reducer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-491578.js
diff --git a/test/mjsunit/compiler/regress-445876.js b/test/mjsunit/compiler/regress-491578.js
similarity index 58%
copy from test/mjsunit/compiler/regress-445876.js
copy to test/mjsunit/compiler/regress-491578.js
index 30e10e56c3ac424fb8843b700bec2af5ded334ac..c27570456c31e9a191fe1f4f1ea17b80f29de98e 100644
--- a/test/mjsunit/compiler/regress-445876.js
+++ b/test/mjsunit/compiler/regress-491578.js
@@ -4,9 +4,12 @@
// Flags: --allow-natives-syntax
-function f(x) {
- while (1) { s++; }
- while (x) { s++; }
+function foo(x) {
+ if (x === undefined) return;
+ while (true) {
+ while (1 || 2) { }
+ f();
+ }
}
-
-assertThrows(function () { f(1); });
+%OptimizeFunctionOnNextCall(foo);
+foo();
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698