summaryrefslogtreecommitdiffstats
path: root/js/src
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-12 12:40:05 +0800
committerMoonchild <moonchild@palemoon.org>2020-05-20 14:00:23 +0000
commitf50410bd7916c62200f5af3d1e6ad62abea8ea83 (patch)
treeabd680cf0c3acdfba1b990a0e1d958d20b069768 /js/src
parent609d904cc1340e240c875525dd79981e70c8524b (diff)
downloadUXP-f50410bd7916c62200f5af3d1e6ad62abea8ea83.tar
UXP-f50410bd7916c62200f5af3d1e6ad62abea8ea83.tar.gz
UXP-f50410bd7916c62200f5af3d1e6ad62abea8ea83.tar.lz
UXP-f50410bd7916c62200f5af3d1e6ad62abea8ea83.tar.xz
UXP-f50410bd7916c62200f5af3d1e6ad62abea8ea83.zip
Bug 1323646 - IonMonkey: MIPS64: Fix range checking in ma_addTestOverflow
Tag: #1542
Diffstat (limited to 'js/src')
-rw-r--r--js/src/jit/mips64/MacroAssembler-mips64.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jit/mips64/MacroAssembler-mips64.cpp b/js/src/jit/mips64/MacroAssembler-mips64.cpp
index 7021d0f74..efdaac8d4 100644
--- a/js/src/jit/mips64/MacroAssembler-mips64.cpp
+++ b/js/src/jit/mips64/MacroAssembler-mips64.cpp
@@ -497,7 +497,7 @@ void
MacroAssemblerMIPS64::ma_addTestOverflow(Register rd, Register rs, Imm32 imm, L overflow)
{
// Check for signed range because of as_daddiu
- if (Imm16::IsInSignedRange(imm.value) && Imm16::IsInUnsignedRange(imm.value)) {
+ if (Imm16::IsInSignedRange(imm.value)) {
as_daddiu(SecondScratchReg, rs, imm.value);
as_addiu(rd, rs, imm.value);
ma_b(rd, SecondScratchReg, overflow, Assembler::NotEqual);