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

Unified Diff: test/mjsunit/compiler/regress-loop-variable-if.js

Issue 2222953003: [turbofan] Fix silly bug in loop variable analysis. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/loop-variable-optimizer.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-loop-variable-if.js
diff --git a/test/mjsunit/ignition/dead-code-source-position.js b/test/mjsunit/compiler/regress-loop-variable-if.js
similarity index 66%
copy from test/mjsunit/ignition/dead-code-source-position.js
copy to test/mjsunit/compiler/regress-loop-variable-if.js
index 95bb9183b880229a703e58503e9aec2a673015aa..ec284e92227d13a63cad7ab8e01826b8111aa558 100644
--- a/test/mjsunit/ignition/dead-code-source-position.js
+++ b/test/mjsunit/compiler/regress-loop-variable-if.js
@@ -2,8 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// Flags: --turbo-loop-variable
+
function f() {
- for (f(x) in []) { f(new f()) }
+ for (var i = 0; i != 10; i++) {
+ if (i < 8) print("x");
+ }
}
f();
« no previous file with comments | « src/compiler/loop-variable-optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698