]>
Commit | Line | Data |
---|---|---|
ed1e77d3 A |
1 | function foo(o) { |
2 | o.x = 1; | |
3 | o.y = 2; | |
4 | o.a = 3; | |
5 | o.b = 4; | |
6 | o.c = 5; | |
7 | o.d = 6; | |
8 | o.e = 7; | |
9 | o.f = 8; | |
10 | o.g = 9; | |
11 | o.h = 10; | |
12 | o.i = 11; | |
13 | } | |
14 | ||
15 | noInline(foo); | |
16 | ||
17 | function Foo() { | |
18 | foo(this); | |
19 | } | |
20 | ||
21 | var result = 0; | |
22 | ||
23 | for (var i = 0; i < 100000; ++i) { | |
24 | foo({f:42}); | |
25 | result += (new Foo()).x; | |
26 | } | |
27 | ||
28 | if (result != 100000) | |
29 | throw "Bad result: " + result; | |
30 |