]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/fiat-int32-to-int52.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / fiat-int32-to-int52.js
1 function foo(o) {
2 return fiatInt52(o.f) + 1;
3 }
4
5 noInline(foo);
6
7 var o = {f:42};
8
9 for (var i = 0; i < 1000000; ++i) {
10 var result = foo(o);
11 if (result != 43)
12 throw "Error: bad result: " + result;
13 }