| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 98f1e8beb45dde94f0f9204d4f7f3d24a58d3457..5d1f46d065634bc7381850bddca5bf9c0362a740 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -109,10 +109,8 @@ 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);
|
| - }
|
| + info()->CommitDependentMaps(code);
|
| +
|
| for (int i = 0 ; i < transition_maps_.length(); i++) {
|
| transition_maps_.at(i)->AddDependentCode(
|
| DependentCode::kTransitionGroup, code);
|
| @@ -5988,11 +5986,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);
|
|
|