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

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

Issue 1972323004: [turbofan] Escape analysis treats guard nodes as escaping. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-pipeline-json-printing
Patch Set: All JS operators are escaping. Created 4 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/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/regress/regress-crbug-602595.js
diff --git a/test/mjsunit/compiler/regress-dead-throw-inlining.js b/test/mjsunit/regress/regress-crbug-602595.js
similarity index 54%
copy from test/mjsunit/compiler/regress-dead-throw-inlining.js
copy to test/mjsunit/regress/regress-crbug-602595.js
index 097a20bc41d34760931928c45e4117888295f20a..840a3b73c7f3adbe81d63e9e56c6af258c0bb1aa 100644
--- a/test/mjsunit/compiler/regress-dead-throw-inlining.js
+++ b/test/mjsunit/regress/regress-crbug-602595.js
@@ -2,12 +2,11 @@
// 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: --allow-natives-syntax --experimental-turbo-escape
-function g() { if (false) throw 0; }
-function f() { g(); }
+function f(a) { return [a] }
-f();
-f();
+assertEquals([23], f(23));
+assertEquals([42], f(42));
%OptimizeFunctionOnNextCall(f);
-f();
+assertEquals([65], f(65));
« 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