]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | function foo(a, b) { |
2 | if (DFGTrue()) | |
3 | a = b = 5.4; | |
4 | var c = a + b; | |
5 | if (isFinalTier()) | |
6 | OSRExit(); | |
7 | return c + 0.5; | |
8 | } | |
9 | ||
10 | noInline(foo); | |
11 | ||
12 | for (var i = 0; i < 100000; ++i) { | |
13 | var result = foo(1.4, 1.3); | |
14 | if (result != 1.4 + 1.3 + 0.5 && result != 5.4 + 5.4 + 0.5) | |
15 | throw "Error: bad result: " + result; | |
16 | } | |
17 |