зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1344597 - Baldr: MIPS: Fix trap type of unsigned divide by zero. r=luke
--- js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This commit is contained in:
Родитель
28780037e3
Коммит
7929efd911
|
@ -2413,7 +2413,7 @@ CodeGeneratorMIPSShared::visitUDivOrMod(LUDivOrMod* ins)
|
|||
if (ins->canBeDivideByZero()) {
|
||||
if (ins->mir()->isTruncated()) {
|
||||
if (ins->trapOnError()) {
|
||||
masm.ma_b(rhs, rhs, trap(ins, wasm::Trap::InvalidConversionToInteger), Assembler::Zero);
|
||||
masm.ma_b(rhs, rhs, trap(ins, wasm::Trap::IntegerDivideByZero), Assembler::Zero);
|
||||
} else {
|
||||
// Infinity|0 == 0
|
||||
Label notzero;
|
||||
|
|
Загрузка…
Ссылка в новой задаче