]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | function foo(o) { |
2 | return bar(o); | |
3 | } | |
4 | ||
5 | function fuzz(o) { | |
6 | return bar(o); | |
7 | } | |
8 | ||
9 | function bar(o) { | |
10 | return o.f; | |
11 | } | |
12 | ||
13 | noInline(foo); | |
14 | noInline(fuzz); | |
15 | ||
16 | for (var i = 0; i < 100000; ++i) { | |
17 | var result = foo({f:42}); | |
18 | if (result != 42) | |
19 | throw "Error: bad result: " + result; | |
20 | var result = fuzz({g:23, f:24}); | |
21 | if (result != 24) | |
22 | throw "Error: bad result: " + result; | |
23 | } | |
24 |