blob: c650fe78651033069d121d80b41e89e84f8496da [file] [log] [blame]
var cycles = 6000
var numberObject = { __proto__: Number}
function foo() {
var result = 0;
var innerCycles = cycles;
var Number = numberObject;
for (var i = 0; i < innerCycles; ++i)
result += 0 | isNaN(Number.NaN);
return result;
}
noInline(foo);
var result = 0;
for (var i = 0; i < 1500; i++)
result += foo();
if (result != i * cycles)
throw "Failed, result was " + (result) + " should be " + (i * cycles)