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:
Heiher 2017-03-07 08:46:02 +08:00
Родитель 28780037e3
Коммит 7929efd911
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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;