michael@0: /* vim: set ts=8 sts=4 et sw=4 tw=99: */ michael@0: michael@0: function J(i) { michael@0: /* Cause a branch to build(?) */ michael@0: if (i % 3) michael@0: [1,2,3] michael@0: } michael@0: michael@0: function h(i) { michael@0: J(i); michael@0: michael@0: /* Generate a safe point in the method JIT. */ michael@0: if (1 == 14) { eval(); } michael@0: michael@0: return J(i); michael@0: } michael@0: michael@0: function g(i) { michael@0: /* Method JIT will try to remove this frame(?) */ michael@0: if (i == 14) { with ({}); } michael@0: return h(i); michael@0: } michael@0: michael@0: function f() { michael@0: for (var i = 0; i < 9 * 2; i++) { michael@0: g(i); michael@0: } michael@0: } michael@0: michael@0: f(); michael@0: michael@0: /* Don't crash. */ michael@0: