michael@0: // Handle bailing from a constructor that's called from the interpreter. michael@0: michael@0: function yesokhellothankyou() { michael@0: return 5; michael@0: } michael@0: michael@0: function BailFromConstructor() { michael@0: this.x = "cats"; michael@0: this.y = 5; michael@0: var z = yesokhellothankyou(); michael@0: michael@0: // Causes a bailout for purposes of inlining at the LRecompileCheck. michael@0: // Yep, this is great. michael@0: for (var i = 0; i < 10500; i++) { michael@0: x = 4; michael@0: } michael@0: michael@0: return 4; michael@0: } michael@0: michael@0: var x = new BailFromConstructor();