Debian Codegraph @

js/src/jit-test/tests/self-test/inJit.js

raw
1 // Test that inJit eventually becomes truthy.
2 // This code should never timeout.
3
4 function callInJit() {
5 return inJit();
6 };
7
8 function test() {
9 // Test with OSR.
10 while(!inJit());
11
12 // Test with inlining.
13 while(!callInJit());
14
15 // Test with zealous gc preventing compilation.
16 while(!inJit()) gc();
17 };
18
19 test();
20