blob: a7bf3b9aa63bf241d83ef3be3d0608e447953746 [file] [log] [blame]
fpizlo@apple.comf2999932014-07-15 00:41:39 +00001function 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}