Debian Codegraph @

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

raw
1 // |jit-test| --fast-warmup
2 function f(s) {
3 // Trial-inline self-hosted |replace| and relazify.
4 for (var i = 0; i < 50; i++) {
5 s = s.replace("a", "b");
6 }
7 trialInline();
8 relazifyFunctions();
9
10 // Warp-compile.
11 for (var j = 0; j < 50; j++) {}
12
13 return s;
14 }
15 assertEq(f("a"), "b");