]>
Commit | Line | Data |
---|---|---|
ed1e77d3 A |
1 | (function() { |
2 | var o = {_f:42}; | |
3 | o.__defineSetter__("f", function(value) { this._f = value * 100; }); | |
4 | var n = 50000; | |
5 | function foo(o_, v_) { | |
6 | var o = o_.f; | |
7 | var v = v_.f; | |
8 | o.f = v; | |
9 | o.f = v + 1; | |
10 | } | |
11 | noInline(foo); | |
12 | for (var i = 0; i < n; ++i) { | |
13 | foo({f:o}, {f:11}); | |
14 | } | |
15 | if (o._f != (11 + 1) * 100) | |
16 | throw "Error: bad o._f: " + o._f; | |
17 | for (var i = 0; i < n; ++i) { | |
18 | foo({f:o}, {f:1000000000}); | |
19 | } | |
20 | if (o._f != 100 * (1000000000 + 1)) | |
21 | throw "Error: bad o._f (2): " + o._f; | |
22 | })(); | |
23 |