blob: 6645934edf2ab0bc05dd2c12eb3a96c77726b52d [file] [log] [blame]
var array = [];
var casted = [];
for (var i = 0; i < 1e3; ++i) {
array[i] = Math.random();
casted[i] = 0;
}
function test(array, casted)
{
for (var i = 0; i < array.length; i++)
casted[i] = Number(array[i] < .5);
}
noInline(test);
for (var i = 0; i < 1e5; ++i)
test(array, casted);