Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index d5280ffcbf4a3efb20bae01f6de6f2311c663fb6..eb960a4bb2c06629272c6e81c19ae1a1adb69c37 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -1926,15 +1926,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; |
} |