js/src/jit-test/tests/auto-regress/bug755639.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/bug755639.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +// Binary: cache/js-dbg-64-bfc259be3fa2-linux
     1.5 +// Flags: -m -n -a
     1.6 +//
     1.7 +
     1.8 +if (typeof gcPreserveCode != "function") {
     1.9 +    function gcPreserveCode() {}
    1.10 +}
    1.11 +
    1.12 +if (typeof gcslice != "function") {
    1.13 +    function gcslice() {}
    1.14 +}
    1.15 +
    1.16 +function f(t)
    1.17 +{
    1.18 +    for (var i = 0; i < 1; ++i) {
    1.19 +        if (typeof(t) != "string") {
    1.20 +        }
    1.21 +    }
    1.22 +}
    1.23 +function m(d)
    1.24 +{
    1.25 +    if (d == 0)
    1.26 +        return "";
    1.27 +    f(m(d - 1));
    1.28 +}
    1.29 +m(1);
    1.30 +gcPreserveCode();
    1.31 +try {
    1.32 +  mjitChunkLimit(1);
    1.33 +} catch(exc1) {}
    1.34 +gcslice(0);
    1.35 +m(1);
    1.36 +gc();
    1.37 +m(2);

mercurial