]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | function foo(x) { |
2 | var y = x; | |
3 | x = y * 2; | |
4 | if (x) { | |
5 | x += y; | |
6 | x += y; | |
7 | x += y; | |
8 | } | |
9 | return x; | |
10 | } | |
11 | ||
12 | noInline(foo); | |
13 | ||
14 | for (var i = 0; i < 100000; ++i) { | |
15 | var result = foo(1000000000); | |
16 | if (result != 1000000000 * 2 + 1000000000 * 3) | |
17 | throw "Error: bad result: " + result; | |
18 | } |