]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/int52-variable.js
JavaScriptCore-7600.1.4.9.tar.gz
[apple/javascriptcore.git] / tests / stress / int52-variable.js
... / ...
CommitLineData
1function foo(x) {
2 var y = x;
3 var z = y * 2;
4 if (z) {
5 z += y;
6 z += y;
7 z += y;
8 }
9 return z;
10}
11
12noInline(foo);
13
14for (var i = 0; i < 100000; ++i) {
15 var result = foo(1000000000);
16 if (result != 1000000000 * 2 + 1000000000 * 3)
17 throw "Error: bad result: " + result;
18}