Index: src/compiler/arm64/linkage-arm64.cc |
diff --git a/src/compiler/arm64/linkage-arm64.cc b/src/compiler/arm64/linkage-arm64.cc |
index 5729a7149dce9eb1bb86e9fadeb9ba93f4011bf5..5a61a710059763abe4df045d8a5132828c6ba213 100644 |
--- a/src/compiler/arm64/linkage-arm64.cc |
+++ b/src/compiler/arm64/linkage-arm64.cc |
@@ -14,7 +14,7 @@ namespace v8 { |
namespace internal { |
namespace compiler { |
-struct LinkageHelperTraits { |
+struct Arm64LinkageHelperTraits { |
static Register ReturnValueReg() { return x0; } |
static Register ReturnValue2Reg() { return x1; } |
static Register JSCallFunctionReg() { return x1; } |
@@ -33,33 +33,32 @@ struct LinkageHelperTraits { |
}; |
+typedef LinkageHelper<Arm64LinkageHelperTraits> LH; |
+ |
CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) { |
- return LinkageHelper::GetJSCallDescriptor<LinkageHelperTraits>( |
- zone, parameter_count); |
+ return LH::GetJSCallDescriptor(zone, parameter_count); |
} |
CallDescriptor* Linkage::GetRuntimeCallDescriptor( |
Runtime::FunctionId function, int parameter_count, |
Operator::Properties properties, Zone* zone) { |
- return LinkageHelper::GetRuntimeCallDescriptor<LinkageHelperTraits>( |
- zone, function, parameter_count, properties); |
+ return LH::GetRuntimeCallDescriptor(zone, function, parameter_count, |
+ properties); |
} |
CallDescriptor* Linkage::GetStubCallDescriptor( |
CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count, |
CallDescriptor::Flags flags, Zone* zone) { |
- return LinkageHelper::GetStubCallDescriptor<LinkageHelperTraits>( |
- zone, descriptor, stack_parameter_count, flags); |
+ return LH::GetStubCallDescriptor(zone, descriptor, stack_parameter_count, |
+ flags); |
} |
-CallDescriptor* Linkage::GetSimplifiedCDescriptor( |
- Zone* zone, int num_params, MachineType return_type, |
- const MachineType* param_types) { |
- return LinkageHelper::GetSimplifiedCDescriptor<LinkageHelperTraits>( |
- zone, num_params, return_type, param_types); |
+CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
+ MachineSignature* sig) { |
+ return LH::GetSimplifiedCDescriptor(zone, sig); |
} |
} // namespace compiler |