blob: 24bb2cbe3ca7cd6f22c13f0d5fc06b7cee0a41dc [file] [log] [blame]
function foo(a) {
return a.f + 2000000000;
}
noInline(foo);
for (var i = 0; i < 100000; ++i) {
var result = foo({f:1});
if (result != 2000000001)
throw "Error: bad result: " + result;
}
var result = foo({f:2000000000});
if (result != 4000000000)
throw "Error: bad result: " + result;