Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index d359528e1ae735744a964ea8e7339149e6505372..0253e7cdccb326656ab20c1aa27875d45f8c7f47 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -3788,17 +3788,16 @@ void MacroAssembler::CheckMap(Register obj_map, |
} |
-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); |
} |
- Ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset)); |
- Cmp(scratch, Operand(map)); |
+ Ldr(scratch1, FieldMemOperand(obj, HeapObject::kMapOffset)); |
+ CmpWeakValue(scratch1, cell, scratch2); |
B(ne, &fail); |
Jump(success, RelocInfo::CODE_TARGET); |
Bind(&fail); |