Index: src/ic/x87/ic-compiler-x87.cc |
diff --git a/src/ic/x87/ic-compiler-x87.cc b/src/ic/x87/ic-compiler-x87.cc |
index f344cd1a27d5c237bd4dffe9fb0817277ace105d..20b47e726e583fde5c372299d501dc13aca2cf11 100644 |
--- a/src/ic/x87/ic-compiler-x87.cc |
+++ b/src/ic/x87/ic-compiler-x87.cc |
@@ -75,8 +75,7 @@ |
Handle<Map> map = IC::TypeToMap(*type, isolate()); |
if (!map->is_deprecated()) { |
number_of_handled_maps++; |
- Handle<WeakCell> cell = Map::WeakCellForMap(map); |
- __ CmpWeakValue(map_reg, cell, scratch2()); |
+ __ cmp(map_reg, map); |
if (type->Is(HeapType::Number())) { |
DCHECK(!number_case.is_unused()); |
__ bind(&number_case); |
@@ -101,18 +100,15 @@ |
MapHandleList* transitioned_maps) { |
Label miss; |
__ JumpIfSmi(receiver(), &miss, Label::kNear); |
- Register map_reg = scratch1(); |
- __ mov(map_reg, FieldOperand(receiver(), HeapObject::kMapOffset)); |
+ __ mov(scratch1(), FieldOperand(receiver(), HeapObject::kMapOffset)); |
for (int i = 0; i < receiver_maps->length(); ++i) { |
- Handle<WeakCell> cell = Map::WeakCellForMap(receiver_maps->at(i)); |
- __ CmpWeakValue(map_reg, cell, scratch2()); |
+ __ cmp(scratch1(), receiver_maps->at(i)); |
if (transitioned_maps->at(i).is_null()) { |
__ j(equal, handler_stubs->at(i)); |
} else { |
Label next_map; |
__ j(not_equal, &next_map, Label::kNear); |
- Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i)); |
- __ LoadWeakValue(transition_map(), cell, &miss); |
+ __ mov(transition_map(), Immediate(transitioned_maps->at(i))); |
__ jmp(handler_stubs->at(i), RelocInfo::CODE_TARGET); |
__ bind(&next_map); |
} |