]>
Commit | Line | Data |
---|---|---|
ed1e77d3 A |
1 | var n = 10000000; |
2 | ||
3 | function bar() { } | |
4 | ||
5 | function foo(b) { | |
6 | var result = 0; | |
7 | var set = function (x) { result = x; } | |
8 | if (b) { | |
9 | OSRExit(); | |
10 | if (b) { | |
11 | bar(set); | |
12 | } | |
13 | return 0; | |
14 | } | |
15 | return result; | |
16 | } | |
17 | ||
18 | noInline(bar); | |
19 | noInline(foo); | |
20 | ||
21 | for (var i = 0; i < n; i++) { | |
22 | var result = foo(!(i % 100)); | |
23 | if (result != 0) | |
24 | throw "Error: bad result: " + result; | |
25 | } |