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 15064e29fdc12e8572d3753ac7b0a4ac9d54335a..602b9f9b1ca6a1d5f74a78ff98321447f3c9cdec 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -563,86 +563,7 @@ void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, |
} |
-void InstructionSelector::VisitTailCall(Node* node) { |
- MipsOperandGenerator g(this); |
- const CallDescriptor* descriptor = OpParameter<const CallDescriptor*>(node); |
- DCHECK_NE(0, descriptor->flags() & CallDescriptor::kSupportsTailCalls); |
- DCHECK_EQ(0, descriptor->flags() & CallDescriptor::kPatchableCallSite); |
- DCHECK_EQ(0, descriptor->flags() & CallDescriptor::kNeedsNopAfterCall); |
- |
- // TODO(turbofan): Relax restriction for stack parameters. |
- if (linkage()->GetIncomingDescriptor()->CanTailCall(node)) { |
- CallBuffer buffer(zone(), descriptor, nullptr); |
- |
- // Compute InstructionOperands for inputs and outputs. |
- InitializeCallBuffer(node, &buffer, true, false); |
- |
- // Select the appropriate opcode based on the call type. |
- InstructionCode opcode; |
- switch (descriptor->kind()) { |
- case CallDescriptor::kCallCodeObject: |
- opcode = kArchTailCallCodeObject; |
- break; |
- case CallDescriptor::kCallJSFunction: |
- opcode = kArchTailCallJSFunction; |
- break; |
- default: |
- UNREACHABLE(); |
- return; |
- } |
- opcode |= MiscField::encode(descriptor->flags()); |
- |
- // Emit the tailcall instruction. |
- Emit(opcode, 0, nullptr, buffer.instruction_args.size(), |
- &buffer.instruction_args.front()); |
- } else { |
- FrameStateDescriptor* frame_state_descriptor = |
- descriptor->NeedsFrameState() |
- ? GetFrameStateDescriptor( |
- node->InputAt(static_cast<int>(descriptor->InputCount()))) |
- : nullptr; |
- |
- CallBuffer buffer(zone(), descriptor, frame_state_descriptor); |
- |
- // Compute InstructionOperands for inputs and outputs. |
- InitializeCallBuffer(node, &buffer, true, false); |
- // Possibly align stack here for functions. |
- int push_count = static_cast<int>(descriptor->StackParameterCount()); |
- if (push_count > 0) { |
- Emit(kMipsStackClaim, g.NoOutput(), |
- g.TempImmediate(push_count << kPointerSizeLog2)); |
- } |
- int slot = static_cast<int>(buffer.pushed_nodes.size()) - 1; |
- for (Node* input : base::Reversed(buffer.pushed_nodes)) { |
- Emit(kMipsStoreToStackSlot, g.NoOutput(), g.UseRegister(input), |
- g.TempImmediate(slot << kPointerSizeLog2)); |
- slot--; |
- } |
- |
- // Select the appropriate opcode based on the call type. |
- InstructionCode opcode; |
- switch (descriptor->kind()) { |
- case CallDescriptor::kCallCodeObject: { |
- opcode = kArchCallCodeObject; |
- break; |
- } |
- case CallDescriptor::kCallJSFunction: |
- opcode = kArchCallJSFunction; |
- break; |
- default: |
- UNREACHABLE(); |
- return; |
- } |
- opcode |= MiscField::encode(descriptor->flags()); |
- |
- // Emit the call instruction. |
- size_t const output_count = buffer.outputs.size(); |
- auto* outputs = output_count ? &buffer.outputs.front() : nullptr; |
- Emit(opcode, output_count, outputs, buffer.instruction_args.size(), |
- &buffer.instruction_args.front())->MarkAsCall(); |
- Emit(kArchRet, 0, nullptr, output_count, outputs); |
- } |
-} |
+bool InstructionSelector::IsTailCallAddressImmediate() { return false; } |
void InstructionSelector::VisitCheckedLoad(Node* node) { |