Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 7d685bff320dab92d8a3d384ab9054b32bb4e7c3..fead96e702926b67d49aac9ad5b077d24f1b0f85 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -109,20 +109,7 @@ void LCodeGen::FinishCode(Handle<Code> code) { |
if (!info()->IsStub()) { |
Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(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); |
} |
@@ -4331,9 +4318,6 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
} |
if (!transition.is_null()) { |
- if (transition->CanBeDeprecated()) { |
- transition_maps_.Add(transition, info()->zone()); |
- } |
if (!instr->hydrogen()->NeedsWriteBarrierForMap()) { |
__ mov(FieldOperand(object, HeapObject::kMapOffset), transition); |
} else { |
@@ -6009,11 +5993,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(reg, prototypes->at(i)); |
DoCheckMapCommon(reg, maps->at(i), instr); |