diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-12 12:40:04 +0800 |
---|---|---|
committer | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-14 16:31:55 +0800 |
commit | 4e2559d92f3f1238013b8d6e26e49632d13ba873 (patch) | |
tree | 4033b35892ea1a30c7ce2d29d515ed391ec3773d /js/src/jit | |
parent | ec7269ea5c653c64fea9c1d490ca4298673ec13b (diff) | |
download | UXP-4e2559d92f3f1238013b8d6e26e49632d13ba873.tar UXP-4e2559d92f3f1238013b8d6e26e49632d13ba873.tar.gz UXP-4e2559d92f3f1238013b8d6e26e49632d13ba873.tar.lz UXP-4e2559d92f3f1238013b8d6e26e49632d13ba873.tar.xz UXP-4e2559d92f3f1238013b8d6e26e49632d13ba873.zip |
Bug 1344597 - Baldr: MIPS: Fix trap type of unsigned divide by zero
Tag: #1542
Diffstat (limited to 'js/src/jit')
-rw-r--r-- | js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp b/js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp index f3c776f42..1a5a3987b 100644 --- a/js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp +++ b/js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp @@ -2412,7 +2412,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; |