Debian Codegraph @

js/src/jit-test/tests/bug1852218.js

raw
1 // |jit-test| skip-if: getBuildConfiguration("arm64-simulator") === true
2 // This test times out in ARM64 simulator builds.
3
4 // The test is also very slow with GenerationalGC zeal mode, especially if
5 // CheckHeapBeforeMinorGC is also enabled. GenerationalGC makes the number of
6 // minor GCs go 93 -> 126000.
7 if (this.unsetgczeal) {
8 unsetgczeal("GenerationalGC");
9 }
10
11 function makeIonCompiledScript(n) {
12 let src = "";
13 for (var i = 0; i < n; i++) {
14 src += "\n";
15 }
16 src += "function f() {}";
17 eval(src);
18 f();
19 return f;
20 }
21
22 for (var i = 0; i < 5010; i++) {
23 makeIonCompiledScript(i);
24 }