Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 25867adb4668efa7bfaf3e07ab912ead9b5353b1..4a07f70452138801e2addc13602e218d05e66992 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -2062,10 +2062,16 @@ LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { |
LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { |
LOperand* value = NULL; |
- if (!instr->CanOmitMapChecks()) value = UseRegisterAtStart(instr->value()); |
+ if (!instr->CanOmitMapChecks()) { |
+ value = UseRegisterAtStart(instr->value()); |
+ if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); |
+ } |
LCheckMaps* result = new(zone()) LCheckMaps(value); |
- if (instr->CanOmitMapChecks()) return result; |
- return AssignEnvironment(result); |
+ if (!instr->CanOmitMapChecks()) { |
+ AssignEnvironment(result); |
+ if (instr->has_migration_target()) return AssignPointerMap(result); |
+ } |
+ return result; |
} |