Index: src/compiler/x64/linkage-x64.cc |
diff --git a/src/compiler/x64/linkage-x64.cc b/src/compiler/x64/linkage-x64.cc |
index c106b7bc487a194ab916459a8505ffd68447472c..4ea9cc8deb42a72f897e7c153353c6f3708ced53 100644 |
--- a/src/compiler/x64/linkage-x64.cc |
+++ b/src/compiler/x64/linkage-x64.cc |
@@ -20,7 +20,7 @@ const bool kWin64 = true; |
const bool kWin64 = false; |
#endif |
-struct LinkageHelperTraits { |
+struct X64LinkageHelperTraits { |
static Register ReturnValueReg() { return rax; } |
static Register ReturnValue2Reg() { return rdx; } |
static Register JSCallFunctionReg() { return rdi; } |
@@ -47,34 +47,32 @@ struct LinkageHelperTraits { |
static int CRegisterParametersLength() { return kWin64 ? 4 : 6; } |
}; |
+typedef LinkageHelper<X64LinkageHelperTraits> 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 |