Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 78a583f5b0e1e9d8bad7a9583b82d584d7df55f4..90c3499a9adcdc563d267e9edb8dc483282fef3c 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -3998,17 +3998,17 @@ void MacroAssembler::CheckMap(Register obj, |
} |
-void MacroAssembler::DispatchMap(Register obj, |
- Register scratch, |
- Handle<Map> map, |
- Handle<Code> success, |
- SmiCheckType smi_check_type) { |
+void MacroAssembler::DispatchWeakMap(Register obj, Register scratch1, |
+ Register scratch2, Handle<WeakCell> cell, |
+ Handle<Code> success, |
+ SmiCheckType smi_check_type) { |
Label fail; |
if (smi_check_type == DO_SMI_CHECK) { |
JumpIfSmi(obj, &fail); |
} |
- lw(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); |
- Jump(success, RelocInfo::CODE_TARGET, eq, scratch, Operand(map)); |
+ lw(scratch1, FieldMemOperand(obj, HeapObject::kMapOffset)); |
+ GetWeakValue(scratch2, cell); |
+ Jump(success, RelocInfo::CODE_TARGET, eq, scratch1, Operand(scratch2)); |
bind(&fail); |
} |