mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
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:
parent
8a3f2294da
commit
8be3837e44
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user