| description( | |
| "Tests that Phantom(GetLocal) is treated as being relevant to OSR." | |
| ); | |
| function foo(o) { | |
| var x = o; | |
| var y = o.f; | |
| if (y) { | |
| o.g.h; | |
| return !x; | |
| } | |
| // Do things to ensure that the structure check on o is not hoisted. | |
| return o + o + o + o + o; | |
| } | |
| for (var i = 0; i < 200; ++i) | |
| shouldBe("foo(i < 190 ? {f:42, g:{h:3}} : {f:42, g:{}})", "false"); | |