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