]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/bit-op-value-to-int32-input-liveness.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / bit-op-value-to-int32-input-liveness.js
... / ...
CommitLineData
1function foo(a, b) {
2 return a.f ^ b.f;
3}
4
5noInline(foo);
6
7for (var i = 0; i < 100000; ++i) {
8 var result = foo({f:5.5}, {f:6.5});
9 if (result != 3)
10 throw "Error: bad result: " + result;
11}
12
13var result = foo({f:"5.5"}, {f:6.5});
14if (result != 3)
15 throw "Error: bad result: " + result;
16
17var result = foo({f:5.5}, {f:"6.5"});
18if (result != 3)
19 throw "Error: bad result: " + result;
20