Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: src/compiler/js-generic-lowering.cc

Issue 523583002: Multiple stubs can point to the same calling convention. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-generic-lowering.cc
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
index 4d0753c4d271b2c03d5d7cedfe5848d7b546dca0..06a78d13face133c874609a6948804943559e03e 100644
--- a/src/compiler/js-generic-lowering.cc
+++ b/src/compiler/js-generic-lowering.cc
@@ -46,10 +46,9 @@ class LoadICStubShim : public HydrogenCodeStub {
virtual void InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE {
- Register registers[] = {InterfaceDescriptor::ContextRegister(),
- LoadConvention::ReceiverRegister(),
- LoadConvention::NameRegister()};
- descriptor->Initialize(MajorKey(), arraysize(registers), registers);
+ CallInterfaceDescriptor* call_descriptor =
+ isolate()->call_descriptor(CallDescriptorKey::LoadICCall);
+ descriptor->Initialize(MajorKey(), call_descriptor);
}
private:
@@ -76,10 +75,9 @@ class KeyedLoadICStubShim : public HydrogenCodeStub {
virtual void InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE {
- Register registers[] = {InterfaceDescriptor::ContextRegister(),
- LoadConvention::ReceiverRegister(),
- LoadConvention::NameRegister()};
- descriptor->Initialize(MajorKey(), arraysize(registers), registers);
+ CallInterfaceDescriptor* call_descriptor =
+ isolate()->call_descriptor(CallDescriptorKey::LoadICCall);
+ descriptor->Initialize(MajorKey(), call_descriptor);
}
private:
@@ -105,11 +103,9 @@ class StoreICStubShim : public HydrogenCodeStub {
virtual void InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE {
- Register registers[] = {InterfaceDescriptor::ContextRegister(),
- StoreConvention::ReceiverRegister(),
- StoreConvention::NameRegister(),
- StoreConvention::ValueRegister()};
- descriptor->Initialize(MajorKey(), arraysize(registers), registers);
+ CallInterfaceDescriptor* call_descriptor =
+ isolate()->call_descriptor(CallDescriptorKey::StoreICCall);
+ descriptor->Initialize(MajorKey(), call_descriptor);
}
private:
@@ -139,11 +135,9 @@ class KeyedStoreICStubShim : public HydrogenCodeStub {
virtual void InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE {
- Register registers[] = {InterfaceDescriptor::ContextRegister(),
- StoreConvention::ReceiverRegister(),
- StoreConvention::NameRegister(),
- StoreConvention::ValueRegister()};
- descriptor->Initialize(MajorKey(), arraysize(registers), registers);
+ CallInterfaceDescriptor* call_descriptor =
+ isolate()->call_descriptor(CallDescriptorKey::StoreICCall);
+ descriptor->Initialize(MajorKey(), call_descriptor);
}
private:
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698