michael@0: function testThinLoopDemote() { michael@0: function f() michael@0: { michael@0: var k = 1; michael@0: for (var n = 0; n < 4; n++) { michael@0: k = (k * 10); michael@0: } michael@0: return k; michael@0: } michael@0: f(); michael@0: return f(); michael@0: } michael@0: assertEq(testThinLoopDemote(), 10000);