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