]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | function foo(x) { |
2 | var y = x; | |
3 | var z = y * 2; | |
4 | if (z) { | |
5 | z += y; | |
6 | z += y; | |
7 | z += y; | |
8 | } | |
9 | return z; | |
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 | } |