summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug755639.js
blob: dc376f69e69263eaf2b1d0acda7391adb629c02b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Binary: cache/js-dbg-64-bfc259be3fa2-linux
// Flags: -m -n -a
//

if (typeof gcPreserveCode != "function") {
    function gcPreserveCode() {}
}

if (typeof gcslice != "function") {
    function gcslice() {}
}

function f(t)
{
    for (var i = 0; i < 1; ++i) {
        if (typeof(t) != "string") {
        }
    }
}
function m(d)
{
    if (d == 0)
        return "";
    f(m(d - 1));
}
m(1);
gcPreserveCode();
try {
  mjitChunkLimit(1);
} catch(exc1) {}
gcslice(1);
m(1);
gc();
m(2);