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

Unified Diff: test/mjsunit/regress/regress-crbug-617567.js

Issue 2041833002: [turbofan] Make FindFrameStateBefore handle dead paths. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/node-properties.cc ('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-crbug-617567.js
diff --git a/test/mjsunit/regress/regress-599412.js b/test/mjsunit/regress/regress-crbug-617567.js
similarity index 50%
copy from test/mjsunit/regress/regress-599412.js
copy to test/mjsunit/regress/regress-crbug-617567.js
index d5c411d0f11a1b81139c4eaefdecfb169c3b007b..f0c696e14b205c8094bb04f909b43a2677bf4c26 100644
--- a/test/mjsunit/regress/regress-599412.js
+++ b/test/mjsunit/regress/regress-crbug-617567.js
@@ -2,21 +2,23 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
+// Flags: --turbo-filter=* --allow-natives-syntax
-function h(a) {
- if (!a) return false;
- print();
+var v1 = {};
+function g() {
+ v1 = [];
+ for (var i = 0; i < 1; i++) {
+ v1[i]();
+ }
}
-function g(a) { return a.length; }
-g('0');
-g('1');
-
+var v2 = {};
+var v3 = {};
function f() {
- h(g([]));
+ v3 = v2;
+ g();
}
-f();
+assertThrows(g);
%OptimizeFunctionOnNextCall(f);
-f();
+assertThrows(f);
« no previous file with comments | « src/compiler/node-properties.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698