| Index: src/ia32/lithium-ia32.cc
|
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
|
| index e81ae935993a370dc2eab3bf2fa38ce3dc609956..3231095adba027bac1c756449d4a2c90eb7f5465 100644
|
| --- a/src/ia32/lithium-ia32.cc
|
| +++ b/src/ia32/lithium-ia32.cc
|
| @@ -2027,15 +2027,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;
|
| }
|
|
|