js/src/jit-test/tests/ion/new-8.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:4b5bf11b4b35
1 // Handle bailing from a constructor that's called from the interpreter.
2
3 function yesokhellothankyou() {
4 return 5;
5 }
6
7 function BailFromConstructor() {
8 this.x = "cats";
9 this.y = 5;
10 var z = yesokhellothankyou();
11
12 // Causes a bailout for purposes of inlining at the LRecompileCheck.
13 // Yep, this is great.
14 for (var i = 0; i < 10500; i++) {
15 x = 4;
16 }
17
18 return 4;
19 }
20
21 var x = new BailFromConstructor();

mercurial