summaryrefslogtreecommitdiffstats
path: root/js/src/jit/mips64/MacroAssembler-mips64-inl.h
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2020-05-12 12:40:13 +0800
committerMoonchild <moonchild@palemoon.org>2020-05-20 14:02:56 +0000
commita34d02924c825b17af0fd505d8fdb890d5ae5dc1 (patch)
tree18fe10f34b5275ac14820b2edc93e21e70fdb893 /js/src/jit/mips64/MacroAssembler-mips64-inl.h
parent084ea153c12cc76674964003d74dbe69ea989e8f (diff)
downloadUXP-a34d02924c825b17af0fd505d8fdb890d5ae5dc1.tar
UXP-a34d02924c825b17af0fd505d8fdb890d5ae5dc1.tar.gz
UXP-a34d02924c825b17af0fd505d8fdb890d5ae5dc1.tar.lz
UXP-a34d02924c825b17af0fd505d8fdb890d5ae5dc1.tar.xz
UXP-a34d02924c825b17af0fd505d8fdb890d5ae5dc1.zip
Bug 1441521 : [MIPS] Optimize comparation with small constants
Tag: #1542
Diffstat (limited to 'js/src/jit/mips64/MacroAssembler-mips64-inl.h')
-rw-r--r--js/src/jit/mips64/MacroAssembler-mips64-inl.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/jit/mips64/MacroAssembler-mips64-inl.h b/js/src/jit/mips64/MacroAssembler-mips64-inl.h
index 7d42c249c..e88122f57 100644
--- a/js/src/jit/mips64/MacroAssembler-mips64-inl.h
+++ b/js/src/jit/mips64/MacroAssembler-mips64-inl.h
@@ -726,9 +726,8 @@ inline void
MacroAssembler::cmpPtrSet(Assembler::Condition cond, Address lhs, ImmPtr rhs,
Register dest)
{
- loadPtr(lhs, ScratchRegister);
- movePtr(rhs, SecondScratchReg);
- cmpPtrSet(cond, ScratchRegister, SecondScratchReg, dest);
+ loadPtr(lhs, SecondScratchReg);
+ cmpPtrSet(cond, SecondScratchReg, rhs, dest);
}
template<>