| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index 5b2a5f5ec1048b662522ba584aa637f3f969162a..0c10a65c217f7841fa70c5ba780ec84bc633a787 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -1976,15 +1976,12 @@ LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) {
|
|
|
|
|
| LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
|
| - LOperand* value = NULL;
|
| - if (!instr->CanOmitMapChecks()) {
|
| - value = UseRegisterAtStart(instr->value());
|
| - if (instr->has_migration_target()) info()->MarkAsDeferredCalling();
|
| - }
|
| - LInstruction* result = new(zone()) LCheckMaps(value);
|
| - if (!instr->CanOmitMapChecks()) {
|
| - result = AssignEnvironment(result);
|
| - if (instr->has_migration_target()) result = AssignPointerMap(result);
|
| + if (instr->IsStabilityCheck()) return new(zone()) LCheckMaps;
|
| + LOperand* value = UseRegisterAtStart(instr->value());
|
| + LInstruction* result = AssignEnvironment(new(zone()) LCheckMaps(value));
|
| + if (instr->HasMigrationTarget()) {
|
| + info()->MarkAsDeferredCalling();
|
| + result = AssignPointerMap(result);
|
| }
|
| return result;
|
| }
|
|
|