Index: src/compiler/arm/linkage-arm.cc |
diff --git a/src/compiler/arm/linkage-arm.cc b/src/compiler/arm/linkage-arm.cc |
index 2b08477705e8f30e8cab42fc5e8a546525d3ee9f..f5c246c2fbac3b167b6a8f63e96ae7dac30fd26f 100644 |
--- a/src/compiler/arm/linkage-arm.cc |
+++ b/src/compiler/arm/linkage-arm.cc |
@@ -14,7 +14,7 @@ namespace v8 { |
namespace internal { |
namespace compiler { |
-struct LinkageHelperTraits { |
+struct ArmLinkageHelperTraits { |
static Register ReturnValueReg() { return r0; } |
static Register ReturnValue2Reg() { return r1; } |
static Register JSCallFunctionReg() { return r1; } |
@@ -33,33 +33,32 @@ struct LinkageHelperTraits { |
}; |
+typedef LinkageHelper<ArmLinkageHelperTraits> 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 |