| Index: src/compiler/mips64/instruction-selector-mips64.cc
|
| diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc
|
| index 4127c312f21f8e777b4d0f1b4e1503a6d0c3a68e..d4dbfe03af4cbceebac1a36840989506b657721b 100644
|
| --- a/src/compiler/mips64/instruction-selector-mips64.cc
|
| +++ b/src/compiler/mips64/instruction-selector-mips64.cc
|
| @@ -738,16 +738,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()) {
|
|
|