Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index 9fa5c8efc1096d6c5aba17f43c5a8c9f0c8cf9a8..008b2af63d93394a5ad4790e364ee757f8282a7f 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -654,16 +654,16 @@ void MacroAssembler::CheckMap(Register obj, |
} |
-void MacroAssembler::DispatchMap(Register obj, |
- Register unused, |
- 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); |
} |
- cmp(FieldOperand(obj, HeapObject::kMapOffset), Immediate(map)); |
+ mov(scratch1, FieldOperand(obj, HeapObject::kMapOffset)); |
+ CmpWeakValue(scratch1, cell, scratch2); |
j(equal, success); |
bind(&fail); |