Debian Codegraph @

js/src/jit-test/tests/warp/bug1666142-2.js

raw
1 // |jit-test| --fast-warmup
2
3 // This test triggers a GC in CreateThisForIC,
4 // while using the arguments rectifier.
5 var records = [];
6 function Record(val) {
7 return Object.create(null);
8 }
9 function init() {
10 records.push(new Record());
11 }
12 function f() {
13 for (var i = 0; i < 100; i++) {
14 init();
15 }
16 }
17
18 gczeal(14,25);
19 f();