js/src/jit-test/tests/auto-regress/bug739901.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/auto-regress/bug739901.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +// Binary: cache/js-dbg-64-940078281bbf-linux
     1.5 +// Flags: --ion-eager
     1.6 +//
     1.7 +function List(l) {
     1.8 +  this.l = l;
     1.9 +}
    1.10 +function f(p) {
    1.11 +  return g(p.l);
    1.12 +};
    1.13 +function g(p) {
    1.14 +  return !(p instanceof List) ? null : f(p.l);
    1.15 +};
    1.16 +list =
    1.17 +  new List(new List(
    1.18 +    new List(new List(
    1.19 +      new List(new List(
    1.20 +        new List(new List(null))))))))
    1.21 +for (let i = 0; i < 99999; i++) {
    1.22 +  g(list);
    1.23 +}

mercurial