Index: src/compiler/x64/instruction-selector-x64.cc |
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc |
index 35785c37a8ebcb8a7230ef330741fdbf19690c6e..b245fa8f879ec77a174d27c9de37f184e864f070 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -1112,16 +1112,12 @@ void InstructionSelector::VisitTailCall(Node* node) { |
DCHECK_EQ(0, descriptor->flags() & CallDescriptor::kNeedsNopAfterCall); |
// TODO(turbofan): Relax restriction for stack parameters. |
- if (descriptor->UsesOnlyRegisters() && |
- descriptor->HasSameReturnLocationsAs( |
- linkage()->GetIncomingDescriptor())) { |
+ if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { |
CallBuffer buffer(zone(), descriptor, nullptr); |
// Compute InstructionOperands for inputs and outputs. |
InitializeCallBuffer(node, &buffer, true, true); |
- DCHECK_EQ(0u, buffer.pushed_nodes.size()); |
- |
// Select the appropriate opcode based on the call type. |
InstructionCode opcode; |
switch (descriptor->kind()) { |