Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index 94fc888d7449339dd5908d6538d2324381de002a..c11ca607257e2c921790a5cd39f6607b6d3a7e26 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -3437,15 +3437,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); |