blob: 2330488bfea0dcaf1174f7c1e00dd853a2f362ca [file] [log] [blame]
function foo(v, a, b) {
if (v) {
let r = a + b;
OSRExit();
return r;
}
}
noInline(foo);
for (let i = 0; i < 10000; ++i) {
let r = foo(true, 4, 4);
if (r !== 8)
throw new Error("Bad!");
}
if (foo(true, 2**31 - 1, 1) !== 2**31)
throw new Error("Bad!");