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

Unified Diff: test/mjsunit/compiler/escape-analysis-framestate-use-at-branchpoint.js

Issue 2578133002: [turbofan] fixed escape analysis bug: missing copy of virtual state (Closed)
Patch Set: addressed comments Created 4 years 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/escape-analysis.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/escape-analysis-framestate-use-at-branchpoint.js
diff --git a/test/mjsunit/compiler/escape-analysis-framestate-use-at-branchpoint.js b/test/mjsunit/compiler/escape-analysis-framestate-use-at-branchpoint.js
new file mode 100644
index 0000000000000000000000000000000000000000..d7ed61b6ebbe93722b566516dfe4f778eee83897
--- /dev/null
+++ b/test/mjsunit/compiler/escape-analysis-framestate-use-at-branchpoint.js
@@ -0,0 +1,19 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --allow-natives-syntax --turbo --turbo-escape
+
+function foo() {
+ var o = {x:0};
+ for (var i = 0; o.x < 1;) {
+ o.x++;
+ i+= 1;
+ }
+ function bar() {i};
+ return o.x;
+}
+foo();
+foo();
+%OptimizeFunctionOnNextCall(foo);
+foo();
« no previous file with comments | « src/compiler/escape-analysis.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698