Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 96befb0c0d4074e98ad5c1e5be4478acb25cd082..ed7e7799ffbafcad804e4eb4212140e2544136fb 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -87,20 +87,7 @@ void LCodeGen::FinishCode(Handle<Code> code) { |
RegisterDependentCodeForEmbeddedMaps(code); |
} |
PopulateDeoptimizationData(code); |
- for (int i = 0 ; i < prototype_maps_.length(); i++) { |
- prototype_maps_.at(i)->AddDependentCode( |
- DependentCode::kPrototypeCheckGroup, code); |
- } |
- for (int i = 0 ; i < transition_maps_.length(); i++) { |
- transition_maps_.at(i)->AddDependentCode( |
- DependentCode::kTransitionGroup, code); |
- } |
- if (graph()->depends_on_empty_array_proto_elements()) { |
- isolate()->initial_object_prototype()->map()->AddDependentCode( |
- DependentCode::kElementsCantBeAddedGroup, code); |
- isolate()->initial_array_prototype()->map()->AddDependentCode( |
- DependentCode::kElementsCantBeAddedGroup, code); |
- } |
+ info()->CommitDependentMaps(code); |
} |
@@ -4267,9 +4254,6 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
} |
if (!transition.is_null()) { |
- if (transition->CanBeDeprecated()) { |
- transition_maps_.Add(transition, info()->zone()); |
- } |
__ mov(scratch, Operand(transition)); |
__ str(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
if (instr->hydrogen()->NeedsWriteBarrierForMap()) { |
@@ -5382,11 +5366,7 @@ void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { |
ASSERT(prototypes->length() == maps->length()); |
- if (instr->hydrogen()->CanOmitPrototypeChecks()) { |
- for (int i = 0; i < maps->length(); i++) { |
- prototype_maps_.Add(maps->at(i), info()->zone()); |
- } |
- } else { |
+ if (!instr->hydrogen()->CanOmitPrototypeChecks()) { |
for (int i = 0; i < prototypes->length(); i++) { |
__ LoadHeapObject(prototype_reg, prototypes->at(i)); |
__ ldr(map_reg, FieldMemOperand(prototype_reg, HeapObject::kMapOffset)); |