Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index c68f3e5a7819f69ab1d8d0d52fce913c45c4900e..f04331d0e2fb88559643ef3baf37f5926c9722a0 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -3994,18 +3994,15 @@ void MacroAssembler::CheckMap(Register obj, |
} |
-void MacroAssembler::CmpWeakValue(Register match, Register value, |
- Handle<WeakCell> cell) { |
- li(match, Operand(cell)); |
- ld(match, FieldMemOperand(match, WeakCell::kValueOffset)); |
- Dsubu(match, value, match); |
+void MacroAssembler::GetWeakValue(Register value, Handle<WeakCell> cell) { |
+ li(value, Operand(cell)); |
+ ld(value, FieldMemOperand(value, WeakCell::kValueOffset)); |
} |
void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, |
Label* miss) { |
- li(value, Operand(cell)); |
- ld(value, FieldMemOperand(value, WeakCell::kValueOffset)); |
+ GetWeakValue(value, cell); |
JumpIfSmi(value, miss); |
} |