| 1 | function foo(int, o) { |
| 2 | var x = int; |
| 3 | o.f = x; |
| 4 | for (var i = 0; i < 100; ++i) |
| 5 | x += 0.5; |
| 6 | } |
| 7 | |
| 8 | noInline(foo); |
| 9 | |
| 10 | for (var i = 0; i < 100; ++i) |
| 11 | foo(42, {}); |
| 12 | |
| 13 | var o = {g: 43}; |
| 14 | foo(47, o); |
| 15 | if (o.f != 47) |
| 16 | throw "Error: o.f is " + o.f; |