Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index f04331d0e2fb88559643ef3baf37f5926c9722a0..2de1c2a1a9edf33c66a4497c3b63759018a9d7e3 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -3965,17 +3965,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); |
} |
- ld(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); |
- Jump(success, RelocInfo::CODE_TARGET, eq, scratch, Operand(map)); |
+ ld(scratch1, FieldMemOperand(obj, HeapObject::kMapOffset)); |
+ GetWeakValue(scratch2, cell); |
+ Jump(success, RelocInfo::CODE_TARGET, eq, scratch1, Operand(scratch2)); |
bind(&fail); |
} |