Commit 8d82cddb authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[turbofan] Remove obsolete Linkage::GetAllocateCallDescriptor.

R=ishell@chromium.org

Change-Id: I84288cc16297dbe33adddbdf08b689db95d0fc04
Reviewed-on: https://chromium-review.googlesource.com/1104164Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53786}
parent 38be8e06
......@@ -410,21 +410,6 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
descriptor.DebugName(isolate), descriptor.allocatable_registers());
}
// TODO(ishell): remove this once CallInterfaceDescriptors support
// Linkage::kNoContext and Operator::kNoThrow flags.
// static
CallDescriptor* Linkage::GetAllocateCallDescriptor(Isolate* isolate,
Zone* zone) {
return GetStubCallDescriptor(isolate, zone,
AllocateDescriptor(isolate), // descriptor
0, // stack_parameter_count
CallDescriptor::kCanUseRoots, // flags
Operator::kNoThrow, // properties
MachineType::AnyTagged(), // return_type
1, // return_count
Linkage::kNoContext); // context_spec
}
// static
CallDescriptor* Linkage::GetBytecodeDispatchCallDescriptor(
Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor,
......
......@@ -397,8 +397,6 @@ class V8_EXPORT_PRIVATE Linkage : public NON_EXPORTED_BASE(ZoneObject) {
size_t return_count = 1, ContextSpecification context_spec = kPassContext,
StubCallMode stub_mode = StubCallMode::kCallOnHeapBuiltin);
static CallDescriptor* GetAllocateCallDescriptor(Isolate* isolate,
Zone* zone);
static CallDescriptor* GetBytecodeDispatchCallDescriptor(
Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor,
int stack_parameter_count);
......
......@@ -236,8 +236,10 @@ void MemoryOptimizer::VisitAllocateRaw(Node* node,
: __
AllocateInOldSpaceStubConstant();
if (!allocate_operator_.is_set()) {
auto call_descriptor =
Linkage::GetAllocateCallDescriptor(isolate(), graph()->zone());
auto call_descriptor = Linkage::GetStubCallDescriptor(
isolate(), graph()->zone(), AllocateDescriptor(isolate()), 0,
CallDescriptor::kCanUseRoots, Operator::kNoThrow,
MachineType::AnyTagged(), 1, Linkage::kNoContext);
allocate_operator_.set(common()->Call(call_descriptor));
}
Node* vfalse = __ Call(allocate_operator_.get(), target, size);
......@@ -291,8 +293,10 @@ void MemoryOptimizer::VisitAllocateRaw(Node* node,
: __
AllocateInOldSpaceStubConstant();
if (!allocate_operator_.is_set()) {
auto call_descriptor =
Linkage::GetAllocateCallDescriptor(isolate(), graph()->zone());
auto call_descriptor = Linkage::GetStubCallDescriptor(
isolate(), graph()->zone(), AllocateDescriptor(isolate()), 0,
CallDescriptor::kCanUseRoots, Operator::kNoThrow,
MachineType::AnyTagged(), 1, Linkage::kNoContext);
allocate_operator_.set(common()->Call(call_descriptor));
}
__ Goto(&done, __ Call(allocate_operator_.get(), target, size));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment