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

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

Issue 1949433002: [turbofan] Fix OSR environment in for-in. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/ast-graph-builder.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-607493.js
diff --git a/test/message/syntactic-tail-call-in-try-try-catch-finally.js b/test/mjsunit/compiler/regress-607493.js
similarity index 58%
copy from test/message/syntactic-tail-call-in-try-try-catch-finally.js
copy to test/mjsunit/compiler/regress-607493.js
index 202f4cc2bb4f369993ec235f6eb07f0229ac019c..40cad64f66c4f5f13f301ca78f8fa0e0543c35be 100644
--- a/test/message/syntactic-tail-call-in-try-try-catch-finally.js
+++ b/test/mjsunit/compiler/regress-607493.js
@@ -2,20 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-explicit-tailcalls
+// Flags: --allow-natives-syntax
-function f() {
- return 1;
-}
+var a = [1];
function g() {
- try {
+ for (var x in a) {
try {
- f();
+ for (var i = 0; i < 10; i++) { %OptimizeOsr(); }
+ return;
} catch(e) {
- return continue f();
+ continue;
}
- } finally {
- f();
}
}
+
+g();
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698