]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/int52-force-osr-exit-path.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / int52-force-osr-exit-path.js
1 function foo(a, b, p, o) {
2 var c = a + b;
3 if (p)
4 c -= o.f;
5 return c + 1;
6 }
7
8 noInline(foo);
9
10 var o = {f: 42};
11 for (var i = 0; i < 100000; ++i) {
12 var result = foo(2000000000, 2000000000, false, o);
13 if (result != 4000000001)
14 throw "Error: bad result: " + result;
15 }