]>
Commit | Line | Data |
---|---|---|
1 | function foo(a, b, p, o) { | |
2 | var c = a + b; | |
3 | if (p) | |
4 | c -= o.f; | |
5 | return c + 1; | |
6 | } | |
7 | ||
8 | noInline(foo); | |
9 | ||
10 | var o = {f: 42}; | |
11 | for (var i = 0; i < 100000; ++i) { | |
12 | var result = foo(2000000000, 2000000000, false, o); | |
13 | if (result != 4000000001) | |
14 | throw "Error: bad result: " + result; | |
15 | } |