Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index b040236c3cf4199d923474b5f92b8e26861bc204..069af6eba56c75c58413e20429b1111402116290 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -613,20 +613,20 @@ void KeyedLoadGenericStub::InitializeInterfaceDescriptor( |
} |
-void LoadFieldStub::InitializeInterfaceDescriptor( |
+void HandlerStub::InitializeInterfaceDescriptor( |
CodeStubInterfaceDescriptor* descriptor) { |
- Register registers[] = { InterfaceDescriptor::ContextRegister(), |
- LoadIC::ReceiverRegister() }; |
- descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); |
-} |
- |
- |
-void StringLengthStub::InitializeInterfaceDescriptor( |
- CodeStubInterfaceDescriptor* descriptor) { |
- Register registers[] = { InterfaceDescriptor::ContextRegister(), |
- LoadIC::ReceiverRegister(), |
- LoadIC::NameRegister() }; |
- descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); |
+ if (kind() == Code::LOAD_IC) { |
+ Register registers[] = {InterfaceDescriptor::ContextRegister(), |
+ LoadIC::ReceiverRegister(), LoadIC::NameRegister()}; |
+ descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers); |
+ } else { |
+ DCHECK_EQ(Code::STORE_IC, kind()); |
+ Register registers[] = {InterfaceDescriptor::ContextRegister(), |
+ StoreIC::ReceiverRegister(), |
+ StoreIC::NameRegister(), StoreIC::ValueRegister()}; |
+ descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers, |
+ FUNCTION_ADDR(StoreIC_MissFromStubFailure)); |
+ } |
} |
@@ -653,17 +653,6 @@ void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( |
} |
-void StoreGlobalStub::InitializeInterfaceDescriptor( |
- CodeStubInterfaceDescriptor* descriptor) { |
- Register registers[] = { InterfaceDescriptor::ContextRegister(), |
- StoreIC::ReceiverRegister(), |
- StoreIC::NameRegister(), |
- StoreIC::ValueRegister() }; |
- descriptor->Initialize(MajorKey(), ARRAY_SIZE(registers), registers, |
- FUNCTION_ADDR(StoreIC_MissFromStubFailure)); |
-} |
- |
- |
void InstanceofStub::InitializeInterfaceDescriptor( |
CodeStubInterfaceDescriptor* descriptor) { |
Register registers[] = { InterfaceDescriptor::ContextRegister(), |