| Index: src/compiler/ppc/instruction-selector-ppc.cc
|
| diff --git a/src/compiler/ppc/instruction-selector-ppc.cc b/src/compiler/ppc/instruction-selector-ppc.cc
|
| index 58e4cd98ac03cd62f84b590367c4e0a20a1eb739..03824042a3378f0a9581e025f78b3adb082496c5 100644
|
| --- a/src/compiler/ppc/instruction-selector-ppc.cc
|
| +++ b/src/compiler/ppc/instruction-selector-ppc.cc
|
| @@ -1521,94 +1521,7 @@ void InstructionSelector::EmitPrepareArguments(NodeVector* arguments,
|
| }
|
|
|
|
|
| -void InstructionSelector::VisitTailCall(Node* node) {
|
| - PPCOperandGenerator g(this);
|
| - CallDescriptor const* descriptor = OpParameter<CallDescriptor const*>(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.
|
| - // TODO(turbofan): on PPC it's probably better to use the code object in a
|
| - // register if there are multiple uses of it. Improve constant pool and the
|
| - // heuristics in the register allocator for where to emit constants.
|
| - 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 = nullptr;
|
| - if (descriptor->NeedsFrameState()) {
|
| - frame_state_descriptor =
|
| - GetFrameStateDescriptor(node->InputAt(descriptor->InputCount()));
|
| - }
|
| -
|
| - CallBuffer buffer(zone(), descriptor, frame_state_descriptor);
|
| -
|
| - // Compute InstructionOperands for inputs and outputs.
|
| - // TODO(turbofan): on PPC it's probably better to use the code object in a
|
| - // register if there are multiple uses of it. Improve constant pool and the
|
| - // heuristics in the register allocator for where to emit constants.
|
| - InitializeCallBuffer(node, &buffer, true, false);
|
| -
|
| - // Push any stack arguments.
|
| - int num_slots = static_cast<int>(descriptor->StackParameterCount());
|
| - int slot = 0;
|
| - for (Node* input : buffer.pushed_nodes) {
|
| - if (slot == 0) {
|
| - Emit(kPPC_PushFrame, g.NoOutput(), g.UseRegister(input),
|
| - g.TempImmediate(num_slots));
|
| - } else {
|
| - Emit(kPPC_StoreToStackSlot, g.NoOutput(), g.UseRegister(input),
|
| - g.TempImmediate(slot));
|
| - }
|
| - ++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::VisitFloat64ExtractLowWord32(Node* node) {
|
|
|