Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index d1be92f13449b8f4b99f71fa184dd2ef05066c8a..d1d4fe053461b5bcce44db6d49b28046145de0ca 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.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); |
@@ -5399,11 +5397,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)); |