]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | var foo = function(a, b, count) { |
2 | a = a | 0; | |
3 | b = b | 0; | |
4 | ||
5 | if (false) { | |
6 | return 1; | |
7 | } else { | |
8 | a = a & 0xff00; | |
9 | b = b & 0x00ff; | |
10 | ||
11 | orA = a | 0xff00; | |
12 | xorB = b ^ 0xff; | |
13 | } | |
14 | ||
15 | return orA | xorB; | |
16 | }; | |
17 | ||
18 | var argA = 0; | |
19 | var argB = 0x22; | |
20 | var result = 0; | |
21 | ||
22 | noInline(foo) | |
23 | ||
24 | for (i = 0; i < 100000; i++) | |
25 | result = result | foo(argA, argB, 4) | |
26 | ||
27 | if (result != 0xffdd) | |
28 | throw new Error("Incorrect result!"); |