]> git.saurik.com Git - apple/javascriptcore.git/blame - 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
CommitLineData
81345200
A
1function foo(a, b, p, o) {
2 var c = a + b;
3 if (p)
4 c -= o.f;
5 return c + 1;
6}
7
8noInline(foo);
9
10var o = {f: 42};
11for (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}