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

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

Issue 1943883002: [turbofan] Better test for for-in/continue OSR problem. (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 | « no previous file | 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/mjsunit/compiler/regress-607493.js b/test/mjsunit/compiler/regress-607493.js
index 40cad64f66c4f5f13f301ca78f8fa0e0543c35be..540b47e2d2932a04c0c9cdc2a78346a9a1b63f9c 100644
--- a/test/mjsunit/compiler/regress-607493.js
+++ b/test/mjsunit/compiler/regress-607493.js
@@ -4,17 +4,34 @@
// Flags: --allow-natives-syntax
-var a = [1];
+(function ForInTryCatchContrinueOsr() {
+ var a = [1];
-function g() {
- for (var x in a) {
- try {
- for (var i = 0; i < 10; i++) { %OptimizeOsr(); }
- return;
- } catch(e) {
+ function g() {
+ for (var x in a) {
+ try {
+ for (var i = 0; i < 10; i++) { %OptimizeOsr(); }
+ return;
+ } catch(e) {
+ continue;
+ }
+ }
+ }
+
+ g();
+})();
+
+(function ForInContinueNestedOsr() {
+ var a = [1];
+
+ function g() {
+ for (var x in a) {
+ if (x) {
+ for (var i = 0; i < 10; i++) { %OptimizeOsr(); }
+ }
continue;
}
}
-}
-g();
+ g();
+})();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698