Debian Codegraph @

js/src/jit-test/tests/warp/bug1667685.js

raw
1 // |jit-test| --fast-warmup
2
3 // Prevent slowness with --ion-eager.
4 setJitCompilerOption("ion.warmup.trigger", 100);
5
6 function h() {
7 return 1;
8 }
9 function g() {
10 for (var j = 0; j < 10; j++) {
11 h();
12 }
13 trialInline();
14 }
15 function f() {
16 for (var i = 0; i < 2; i++) {
17 var fun = Function(g.toString() + "g()");
18 try {
19 fun();
20 } catch {}
21 try {
22 fun();
23 } catch {}
24 }
25
26 }
27 oomTest(f);