зеркало из https://github.com/mozilla/gecko-dev.git
Bug 875476 - Avoid passing operands of the wrong type to EvaluateConstantOperands, r=jandem.
This commit is contained in:
Родитель
6c43f1a65d
Коммит
afdd23dc14
|
@ -1283,7 +1283,7 @@ MBinaryArithInstruction::infer(BaselineInspector *inspector,
|
||||||
|
|
||||||
// If the operation will always overflow on its constant operands, use a
|
// If the operation will always overflow on its constant operands, use a
|
||||||
// double specialization so that it can be constant folded later.
|
// double specialization so that it can be constant folded later.
|
||||||
if (isMul() || isDiv()) {
|
if ((isMul() || isDiv()) && lhs == MIRType_Int32 && rhs == MIRType_Int32) {
|
||||||
bool typeChange = false;
|
bool typeChange = false;
|
||||||
EvaluateConstantOperands(this, &typeChange);
|
EvaluateConstantOperands(this, &typeChange);
|
||||||
if (typeChange)
|
if (typeChange)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче