Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index cc77d01838b1460e0925874647efcf992d83a9bc..a330f951d32fc6887d942f3e3e7ef4684d265c2f 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1928,10 +1928,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; |
} |