Don't demote dmod to imod since there is no case that is guaranteed to produce valid integer results for all inputs (456540, r=danderson).

This commit is contained in:
Andreas Gal 2008-09-23 12:21:15 -07:00
Родитель 8a3f2294da
Коммит 8be3837e44
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -680,14 +680,6 @@ public:
return out->insCall(F_Any_setelem_int, args2);
}
break;
case F_dmod:
// FIXME: We should really have LIR_imod and LIR_idiv (455496).
JS_ASSERT(s0->isQuad() && args[1]->isQuad());
if (args[1]->isconstq() && args[1]->constvalq() && isPromote(args[1]) && isPromote(s0)) {
LIns* args2[] = { demote(out, s0), demote(out, args[1]) };
return out->ins1(LIR_i2f, out->insCall(F_imod, args2));
}
break;
}
return out->insCall(fid, args);
}