Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 1c74450c6cb62740dff6bcb952b9c7fe6db923bf..77269429821307466e85c9c87554e810808700ee 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -3776,15 +3776,17 @@ void CompareICStub::GenerateObjects(MacroAssembler* masm) { |
void CompareICStub::GenerateKnownObjects(MacroAssembler* masm) { |
Label miss; |
+ Handle<WeakCell> cell = Map::WeakCellForMap(known_map_); |
__ mov(ecx, edx); |
__ and_(ecx, eax); |
__ JumpIfSmi(ecx, &miss, Label::kNear); |
+ __ GetWeakValue(edi, cell); |
__ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset)); |
__ mov(ebx, FieldOperand(edx, HeapObject::kMapOffset)); |
- __ cmp(ecx, known_map_); |
+ __ cmp(ecx, edi); |
__ j(not_equal, &miss, Label::kNear); |
- __ cmp(ebx, known_map_); |
+ __ cmp(ebx, edi); |
__ j(not_equal, &miss, Label::kNear); |
__ sub(eax, edx); |