]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | function foo(a, b) { |
2 | return bar(a, b); | |
3 | } | |
4 | ||
5 | function bar(a, b) { | |
6 | return baz.apply(null, arguments); | |
7 | } | |
8 | ||
9 | function baz(a, b) { | |
10 | return a + b * 2; | |
11 | } | |
12 | ||
13 | noInline(foo); | |
14 | ||
15 | for (var i = 0; i < 100000; ++i) { | |
16 | var result = foo(7, 11); | |
17 | if (result != 29) | |
18 | throw "Error: bad result: " + result; | |
19 | } | |
20 | ||
21 | var result = foo(5, 2147483646); | |
22 | if (result != 4294967297) | |
23 | throw "Error: bad result: " + result; |