Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index 8ecc25e9e084951baa2c6d1626e18a894a5cd67d..52be8a9a2a5b81cf4ab971d6dc5911082626330b 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -589,16 +589,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, false); |
- DCHECK_EQ(0u, buffer.pushed_nodes.size()); |
- |
// Select the appropriate opcode based on the call type. |
InstructionCode opcode; |
switch (descriptor->kind()) { |