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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/ion/new-8.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +// Handle bailing from a constructor that's called from the interpreter.
     1.5 +
     1.6 +function yesokhellothankyou() {
     1.7 +	return 5;
     1.8 +}
     1.9 +
    1.10 +function BailFromConstructor() {
    1.11 +	this.x = "cats";
    1.12 +	this.y = 5;
    1.13 +	var z = yesokhellothankyou();
    1.14 +
    1.15 +	// Causes a bailout for purposes of inlining at the LRecompileCheck.
    1.16 +	// Yep, this is great.
    1.17 +	for (var i = 0; i < 10500; i++) {
    1.18 +		x = 4;
    1.19 +	}
    1.20 +
    1.21 +	return 4;
    1.22 +}
    1.23 +
    1.24 +var x = new BailFromConstructor();

mercurial