comparison: js/src/jit-test/tests/basic/testThinLoopDemote.js
js/src/jit-test/tests/basic/testThinLoopDemote.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
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); |