Bug 1404590 - MIPS64: Fix MacroAssembler::PopStackPtr. r=luke
authoryuyin <yuyin-hf@loongson.cn>
Sat, 30 Sep 2017 00:51:00 -0400
changeset 427581 e090441e94a9d77c9ab315faa52a96d9d6291a54
parent 427580 a2ef4722c17e272c1025e5b3846648b9ee2e2d12
child 427582 a28c5197c194d1bdba246c9639111208fcf62b93
push id97
push userfmarier@mozilla.com
push dateSat, 14 Oct 2017 01:12:59 +0000
reviewersluke
bugs1404590
milestone58.0a1
Bug 1404590 - MIPS64: Fix MacroAssembler::PopStackPtr. r=luke SizeWord can not use on 64-bit.
js/src/jit/mips-shared/MacroAssembler-mips-shared.cpp
--- a/js/src/jit/mips-shared/MacroAssembler-mips-shared.cpp
+++ b/js/src/jit/mips-shared/MacroAssembler-mips-shared.cpp
@@ -1546,17 +1546,17 @@ MacroAssembler::Pop(const ValueOperand& 
 {
     popValue(val);
     framePushed_ -= sizeof(Value);
 }
 
 void
 MacroAssembler::PopStackPtr()
 {
-    asMasm().ma_load(StackPointer, Address(StackPointer, 0), SizeWord);
+    loadPtr(Address(StackPointer, 0), StackPointer);
     framePushed_ -= sizeof(intptr_t);
 }
 
 
 // ===============================================================
 // Simple call functions.
 
 CodeOffset