blob: 7d70b155b73ae8c351ccfd2c0520bb79ed177729 [file] [log] [blame]
function foo(a, b) {
var o = {f:42};
if ($vm.dfgTrue())
o.f = a - b - 2000000000;
return o.f | 0;
}
noInline(foo);
for (var i = 0; i < 10000; ++i) {
var result = foo(2000000000, -2000000000);
if (result != 2000000000 && result != 42)
throw "Error: bad result: " + result;
}