Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 41ac21315012377706d317e9258401a03ccfaaa3..38259d7651443aedf41b91042855635fda94ad2a 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -740,16 +740,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); |