js/src/jit-test/tests/ion/bug723271.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/bug723271.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +function addConstraint(blaat) {
     1.5 +    return blaat.v1
     1.6 +}
     1.7 +
     1.8 +function ScaleConstraint() {
     1.9 +    this.direction = null
    1.10 +    this.v1 = {};
    1.11 +    addConstraint(this);
    1.12 +}
    1.13 +
    1.14 +function EqualityConstraint() {
    1.15 +    this.v1 = {};
    1.16 +    addConstraint(this);
    1.17 +}
    1.18 +
    1.19 +function deltaBlue() {
    1.20 +    new EqualityConstraint();
    1.21 +    new ScaleConstraint();
    1.22 +}
    1.23 +
    1.24 +for (var n = 0; n<100; n++) {
    1.25 +    deltaBlue()
    1.26 +}

mercurial