Index: src/mips64/interface-descriptors-mips64.cc |
diff --git a/src/mips64/interface-descriptors-mips64.cc b/src/mips64/interface-descriptors-mips64.cc |
index d1adba58cb77c72fd0a880f79bdef796767eca6c..71edc53a2ca71affe51a8a55ce4e95d8f0650579 100644 |
--- a/src/mips64/interface-descriptors-mips64.cc |
+++ b/src/mips64/interface-descriptors-mips64.cc |
@@ -62,106 +62,99 @@ const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; } |
const Register GrowArrayElementsDescriptor::KeyRegister() { return a3; } |
-void FastNewClosureDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void FastNewClosureDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a2}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void FastNewContextDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void FastNewContextDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a1}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void ToNumberDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void ToNumberDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void NumberToStringDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void TypeofDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void TypeofDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a3}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void FastCloneShallowArrayDescriptor::Initialize( |
+void FastCloneShallowArrayDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a3, a2, a1}; |
- Representation representations[] = { |
- Representation::Tagged(), Representation::Tagged(), Representation::Smi(), |
- Representation::Tagged()}; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void FastCloneShallowObjectDescriptor::Initialize( |
+void FastCloneShallowObjectDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a3, a2, a1, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void CreateAllocationSiteDescriptor::Initialize( |
+void CreateAllocationSiteDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a2, a3}; |
- Representation representations[] = {Representation::Tagged(), |
- Representation::Tagged(), |
- Representation::Smi()}; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void CreateWeakCellDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void CreateWeakCellDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a2, a3, a1}; |
- Representation representations[] = { |
- Representation::Tagged(), Representation::Tagged(), Representation::Smi(), |
- Representation::Tagged()}; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void StoreArrayLiteralElementDescriptor::Initialize( |
+void StoreArrayLiteralElementDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a3, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void CallFunctionWithFeedbackDescriptor::Initialize( |
+void CallFunctionWithFeedbackDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a1, a3}; |
- Representation representations[] = {Representation::Tagged(), |
- Representation::Tagged(), |
- Representation::Smi()}; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void CallFunctionWithFeedbackAndVectorDescriptor::Initialize( |
+void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a1, a3, a2}; |
- Representation representations[] = { |
- Representation::Tagged(), Representation::Tagged(), Representation::Smi(), |
- Representation::Tagged()}; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void CallFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void CallFunctionDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a1}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void CallConstructDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
// a0 : number of arguments |
// a1 : the function to call |
// a2 : feedback vector |
@@ -170,34 +163,34 @@ void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
// TODO(turbofan): So far we don't gather type feedback and hence skip the |
// slot parameter, but ArrayConstructStub needs the vector to be undefined. |
Register registers[] = {cp, a0, a1, a2}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void RegExpConstructResultDescriptor::Initialize( |
+void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a2, a1, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void TransitionElementsKindDescriptor::Initialize( |
+void TransitionElementsKindDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a0, a1}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void AllocateHeapNumberDescriptor::Initialize( |
+void AllocateHeapNumberDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
// register state |
// cp -- context |
Register registers[] = {cp}; |
- data->Initialize(arraysize(registers), registers, nullptr); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, nullptr); |
} |
-void ArrayConstructorConstantArgCountDescriptor::Initialize( |
+void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
// register state |
// cp -- context |
@@ -205,136 +198,123 @@ void ArrayConstructorConstantArgCountDescriptor::Initialize( |
// a1 -- function |
// a2 -- allocation site with elements kind |
Register registers[] = {cp, a1, a2}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void ArrayConstructorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void ArrayConstructorDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
// stack param count needs (constructor pointer, and single argument) |
Register registers[] = {cp, a1, a2, a0}; |
- Representation representations[] = { |
- Representation::Tagged(), Representation::Tagged(), |
- Representation::Tagged(), Representation::Integer32()}; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void InternalArrayConstructorConstantArgCountDescriptor::Initialize( |
- CallInterfaceDescriptorData* data) { |
+void InternalArrayConstructorConstantArgCountDescriptor:: |
+ InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
// register state |
// cp -- context |
// a0 -- number of arguments |
// a1 -- constructor function |
Register registers[] = {cp, a1}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void InternalArrayConstructorDescriptor::Initialize( |
+void InternalArrayConstructorDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
// stack param count needs (constructor pointer, and single argument) |
Register registers[] = {cp, a1, a0}; |
- Representation representations[] = {Representation::Tagged(), |
- Representation::Tagged(), |
- Representation::Integer32()}; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void CompareDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void CompareDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a1, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void CompareNilDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void CompareNilDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void ToBooleanDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void ToBooleanDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void BinaryOpDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void BinaryOpDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a1, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void BinaryOpWithAllocationSiteDescriptor::Initialize( |
+void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a2, a1, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void StringAddDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void StringAddDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = {cp, a1, a0}; |
- data->Initialize(arraysize(registers), registers, NULL); |
+ data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
} |
-void KeyedDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void KeyedDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = { |
cp, // context |
a2, // key |
}; |
- Representation representations[] = { |
- Representation::Tagged(), // context |
- Representation::Tagged(), // key |
- }; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void NamedDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void NamedDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = { |
cp, // context |
a2, // name |
}; |
- Representation representations[] = { |
- Representation::Tagged(), // context |
- Representation::Tagged(), // name |
- }; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void CallHandlerDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void CallHandlerDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = { |
cp, // context |
a0, // receiver |
}; |
- Representation representations[] = { |
- Representation::Tagged(), // context |
- Representation::Tagged(), // receiver |
- }; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void ArgumentAdaptorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void ArgumentAdaptorDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = { |
cp, // context |
a1, // JSFunction |
a0, // actual number of arguments |
a2, // expected number of arguments |
}; |
- Representation representations[] = { |
- Representation::Tagged(), // context |
- Representation::Tagged(), // JSFunction |
- Representation::Integer32(), // actual number of arguments |
- Representation::Integer32(), // expected number of arguments |
- }; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void ApiFunctionDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = { |
cp, // context |
a0, // callee |
@@ -343,19 +323,12 @@ void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
a1, // api_function_address |
a3, // actual number of arguments |
}; |
- Representation representations[] = { |
- Representation::Tagged(), // context |
- Representation::Tagged(), // callee |
- Representation::Tagged(), // call_data |
- Representation::Tagged(), // holder |
- Representation::External(), // api_function_address |
- Representation::Integer32(), // actual number of arguments |
- }; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void ApiAccessorDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = { |
cp, // context |
a0, // callee |
@@ -363,29 +336,18 @@ void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
a2, // holder |
a1, // api_function_address |
}; |
- Representation representations[] = { |
- Representation::Tagged(), // context |
- Representation::Tagged(), // callee |
- Representation::Tagged(), // call_data |
- Representation::Tagged(), // holder |
- Representation::External(), // api_function_address |
- }; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void MathRoundVariantDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
+void MathRoundVariantDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
Register registers[] = { |
cp, // context |
a1, // math rounding function |
a3, // vector slot id |
}; |
- Representation representations[] = { |
- Representation::Tagged(), // |
- Representation::Tagged(), // |
- Representation::Tagged(), // |
- }; |
- data->Initialize(arraysize(registers), registers, representations); |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
} // namespace internal |
} // namespace v8 |