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