summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-12 12:40:04 +0800
committerJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-14 16:31:55 +0800
commit4e2559d92f3f1238013b8d6e26e49632d13ba873 (patch)
tree4033b35892ea1a30c7ce2d29d515ed391ec3773d /js
parentec7269ea5c653c64fea9c1d490ca4298673ec13b (diff)
downloadUXP-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')
-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;