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(); |
+})(); |