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

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

Issue 2155123002: [turbofan] Eliminate checkpoints before return in common op reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix change notification Created 4 years, 5 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/common-operator-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-628773.js
diff --git a/test/message/syntactic-tail-call-in-try-try-catch-finally.js b/test/mjsunit/compiler/regress-628773.js
similarity index 52%
copy from test/message/syntactic-tail-call-in-try-try-catch-finally.js
copy to test/mjsunit/compiler/regress-628773.js
index 5b000f11817dfa2287efa7bb680b8cf121bef2ff..3c315b38283281a7f8827f1868aef0c257358f83 100644
--- a/test/message/syntactic-tail-call-in-try-try-catch-finally.js
+++ b/test/mjsunit/compiler/regress-628773.js
@@ -2,21 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-explicit-tailcalls
-"use strict";
+// Flags: --harmony-tailcalls
-function f() {
- return 1;
-}
+"use strict";
-function g() {
- try {
+function foo() {
+ for (var i = 0; i < 10000; i++) {
try {
- f();
+ for (var j = 0; j < 2; j++) {
+ }
+ throw 1;
} catch(e) {
- return continue f() ;
+ if (typeof a == "number") return a && isNaN(b);
}
- } finally {
- f();
}
}
+
+foo();
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698