Enum RegisterInfo renamed to ParameterIndices.

"Info" is information-poor.

R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/385953004

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22404 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
mvstanton@chromium.org 2014-07-15 10:19:30 +00:00
parent ed744ffa17
commit 0827316df5
3 changed files with 10 additions and 9 deletions

View File

@ -576,7 +576,7 @@ void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) {
Register registers[] = { LoadIC::ReceiverRegister(),
LoadIC::NameRegister() };
STATIC_ASSERT(LoadIC::kRegisterArgumentCount == 2);
STATIC_ASSERT(LoadIC::kParameterCount == 2);
descriptor->Initialize(ARRAY_SIZE(registers), registers,
FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure));
}
@ -586,7 +586,7 @@ void KeyedLoadDictionaryElementStub::InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) {
Register registers[] = { LoadIC::ReceiverRegister(),
LoadIC::NameRegister() };
STATIC_ASSERT(LoadIC::kRegisterArgumentCount == 2);
STATIC_ASSERT(LoadIC::kParameterCount == 2);
descriptor->Initialize(ARRAY_SIZE(registers), registers,
FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure));
}
@ -596,7 +596,7 @@ void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) {
Register registers[] = { LoadIC::ReceiverRegister(),
LoadIC::NameRegister() };
STATIC_ASSERT(LoadIC::kRegisterArgumentCount == 2);
STATIC_ASSERT(LoadIC::kParameterCount == 2);
descriptor->Initialize(
ARRAY_SIZE(registers), registers,
Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry);

View File

@ -2455,12 +2455,13 @@ class ElementsTransitionAndStoreStub : public HydrogenCodeStub {
virtual void InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE;
enum RegisterInfo {
// Parameters accessed via CodeStubGraphBuilder::GetParameter()
enum ParameterIndices {
kValueIndex,
kMapIndex,
kKeyIndex,
kObjectIndex,
kRegisterArgumentCount
kParameterCount
};
static const Register ValueRegister() {

View File

@ -396,10 +396,10 @@ class LoadIC: public IC {
class ContextualModeBits: public BitField<ContextualMode, 0, 1> {};
STATIC_ASSERT(static_cast<int>(NOT_CONTEXTUAL) == 0);
enum RegisterInfo {
enum ParameterIndices {
kReceiverIndex,
kNameIndex,
kRegisterArgumentCount
kParameterCount
};
static const Register ReceiverRegister();
static const Register NameRegister();
@ -583,11 +583,11 @@ class StoreIC: public IC {
static const ExtraICState kStrictModeState =
1 << StrictModeState::kShift;
enum RegisterInfo {
enum ParameterIndices {
kReceiverIndex,
kNameIndex,
kValueIndex,
kRegisterArgumentCount
kParameterCount
};
static const Register ReceiverRegister();
static const Register NameRegister();