Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 9cd9afa71a9ab86506ae7b78bd50c1f6ef9c59b8..78a583f5b0e1e9d8bad7a9583b82d584d7df55f4 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -4027,18 +4027,15 @@ void MacroAssembler::CheckMap(Register obj, |
} |
-void MacroAssembler::CmpWeakValue(Register match, Register value, |
- Handle<WeakCell> cell) { |
- li(match, Operand(cell)); |
- lw(match, FieldMemOperand(match, WeakCell::kValueOffset)); |
- Subu(match, value, match); |
+void MacroAssembler::GetWeakValue(Register value, Handle<WeakCell> cell) { |
+ li(value, Operand(cell)); |
+ lw(value, FieldMemOperand(value, WeakCell::kValueOffset)); |
} |
void MacroAssembler::LoadWeakValue(Register value, Handle<WeakCell> cell, |
Label* miss) { |
- li(value, Operand(cell)); |
- lw(value, FieldMemOperand(value, WeakCell::kValueOffset)); |
+ GetWeakValue(value, cell); |
JumpIfSmi(value, miss); |
} |