summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/trial-inline-gc-2.js
blob: 058e2ff645d45a78e1d58d5e53304e7ebd8589e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| --fast-warmup
function h(i) {
    with(this) {} // Don't inline.
    if (i === 100) {
        gc(this, "shrinking");
    }
}
function g(i, x) {
    h(i);
    return x + 1;
}
function f() {
    for (var i = 0; i < 200; i++) {
        g(i, "foo");
        g(i, 1);
    }
}
f();