blob: 55b7d7501dbc8f825fad71e24bff4e1a294c608b [file] [log] [blame]
var cycles = 6000;
var numberObject = { __proto__: Number}
numberObject ={__proto__: numberObject}
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);