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