summaryrefslogtreecommitdiffstats
path: root/js/src/jit/mips-shared
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-12 12:40:04 +0800
committerMoonchild <moonchild@palemoon.org>2020-05-20 14:00:01 +0000
commit0136960ec0658091ff514b71b35ed2720e28254e (patch)
tree2b435bedd60d7118ddd7b37436a9a7ea61cf56ea /js/src/jit/mips-shared
parentd9e0b4be85812fcb2bd04ff9b4383a4c23a6851d (diff)
downloadUXP-0136960ec0658091ff514b71b35ed2720e28254e.tar
UXP-0136960ec0658091ff514b71b35ed2720e28254e.tar.gz
UXP-0136960ec0658091ff514b71b35ed2720e28254e.tar.lz
UXP-0136960ec0658091ff514b71b35ed2720e28254e.tar.xz
UXP-0136960ec0658091ff514b71b35ed2720e28254e.zip
Bug 1344597 - Baldr: MIPS: Fix trap type of unsigned divide by zero
Tag: #1542
Diffstat (limited to 'js/src/jit/mips-shared')
-rw-r--r--js/src/jit/mips-shared/CodeGenerator-mips-shared.cpp2
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;