| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index 4a469f7f5d552bd120aae8c6b5e7d9fac88b9a37..2d6e4cba33c6ebf86ea0877451657cc7325fcdd5 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -92,10 +92,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);
|
| @@ -5078,11 +5076,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);
|
|
|