Index: src/compiler/ia32/linkage-ia32.cc |
diff --git a/src/compiler/ia32/linkage-ia32.cc b/src/compiler/ia32/linkage-ia32.cc |
index 01bb6cca0f0040a1402d7e83b24337afdf484145..e4b554d74ff347d89c2f771fed7d6445089f68ca 100644 |
--- a/src/compiler/ia32/linkage-ia32.cc |
+++ b/src/compiler/ia32/linkage-ia32.cc |
@@ -14,7 +14,7 @@ namespace v8 { |
namespace internal { |
namespace compiler { |
-struct LinkageHelperTraits { |
+struct IA32LinkageHelperTraits { |
static Register ReturnValueReg() { return eax; } |
static Register ReturnValue2Reg() { return edx; } |
static Register JSCallFunctionReg() { return edi; } |
@@ -28,34 +28,32 @@ struct LinkageHelperTraits { |
static int CRegisterParametersLength() { return 0; } |
}; |
+typedef LinkageHelper<IA32LinkageHelperTraits> 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 |