diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-12 12:40:04 +0800 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-05-20 14:00:01 +0000 |
commit | 5a388541474b64b5d2ae08782db291484ceef8dc (patch) | |
tree | 2b435bedd60d7118ddd7b37436a9a7ea61cf56ea /js | |
parent | 89ac9f40f7d2a7bfc9dd50c705cb2b19605b32ea (diff) | |
download | uxp-5a388541474b64b5d2ae08782db291484ceef8dc.tar.gz |
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.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 f3c776f427..1a5a3987bb 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; |