Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 1c8973fe7e2d1e08071df3b390f917cfff6b34fa..76b9663b3b826f5de1ebf5b8c299aa824122f190 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.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); |
} |
@@ -3989,9 +3976,6 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
} |
if (!transition.is_null()) { |
- if (transition->CanBeDeprecated()) { |
- transition_maps_.Add(transition, info()->zone()); |
- } |
__ li(scratch, Operand(transition)); |
__ sw(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
if (instr->hydrogen()->NeedsWriteBarrierForMap()) { |
@@ -5142,11 +5126,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)); |
__ lw(map_reg, FieldMemOperand(prototype_reg, HeapObject::kMapOffset)); |