Debian Codegraph @

js/src/jit-test/tests/basic/testThinLoopDemote.js

raw
1 function testThinLoopDemote() {
2 function f()
3 {
4 var k = 1;
5 for (var n = 0; n < 4; n++) {
6 k = (k * 10);
7 }
8 return k;
9 }
10 f();
11 return f();
12 }
13 assertEq(testThinLoopDemote(), 10000);