| Index: src/compiler/ia32/instruction-selector-ia32.cc
|
| diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc
|
| index 2720910ca3786678b4e5a52f1b5cf1031876a57b..d9ff422597f0738d117af20ca40cb121e21b9113 100644
|
| --- a/src/compiler/ia32/instruction-selector-ia32.cc
|
| +++ b/src/compiler/ia32/instruction-selector-ia32.cc
|
| @@ -906,16 +906,13 @@ 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()) {
|
|
|