]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/int52-inlined-call-argument.js
02b53714ee995afd5b2461f52265e6436af2cc0e
[apple/javascriptcore.git] / tests / stress / int52-inlined-call-argument.js
1 function foo(a, b, c, p) {
2 a = b + c;
3 if (p) {
4 a++;
5 return a;
6 }
7 }
8
9 function bar(a, b) {
10 return foo("hello", a, b, a <= b);
11 }
12
13 noInline(bar);
14
15 for (var i = 0; i < 100000; ++i) {
16 var result = bar(2000000000, 2000000000);
17 if (result != 4000000001)
18 throw "Error: bad result: " + result;
19 }