summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/testBug975182.js
blob: 41c627148f4583f6406f45d98d8e09a88785c984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Function("\
    g = (function(t,foreign){\
        \"use asm\";\
        var ff = foreign.ff;\
        function f() {\
            +ff()\
        }\
        return f\
    })(this, {\
        ff: arguments.callee\
    }, new ArrayBuffer(4096))\
")()
function m(f) {
    for (var j = 0; j < 6000; ++j) {
        f();
        if ((j % 1000) === 0)
            gc();
    }
}
m(g);