tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

trial-inline-gc-2.js (290B)


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