Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index e1b01b37028b417dfc201a9e6e99ebe6d69ad99f..fa97ee420158b82a18dcf3c320a57d3125c2d62a 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -87,10 +87,8 @@ 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); |
- } |
+ info()->CommitDependentMaps(code); |
+ |
for (int i = 0 ; i < transition_maps_.length(); i++) { |
transition_maps_.at(i)->AddDependentCode( |
DependentCode::kTransitionGroup, code); |
@@ -5127,11 +5125,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)); |