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

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

Issue 527093002: Make concrete classes for individual call descriptors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 3 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
Index: src/compiler/js-generic-lowering.cc
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
index 0cb410b7edc3c3473137796163d0ca8a50efd2bc..06b9b3d0f7b57db1a6be2e6ce397ed2b82d4aa00 100644
--- a/src/compiler/js-generic-lowering.cc
+++ b/src/compiler/js-generic-lowering.cc
@@ -46,8 +46,7 @@ class LoadICStubShim : public HydrogenCodeStub {
virtual void InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) OVERRIDE {
- CallInterfaceDescriptor* call_descriptor =
- isolate()->call_descriptor(CallDescriptorKey::LoadICCall);
+ LoadDescriptor call_descriptor(isolate());
descriptor->Initialize(MajorKey(), call_descriptor);
}
@@ -74,8 +73,7 @@ class KeyedLoadICStubShim : public HydrogenCodeStub {
virtual void InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) OVERRIDE {
- CallInterfaceDescriptor* call_descriptor =
- isolate()->call_descriptor(CallDescriptorKey::LoadICCall);
+ LoadDescriptor call_descriptor(isolate());
descriptor->Initialize(MajorKey(), call_descriptor);
}
@@ -101,8 +99,7 @@ class StoreICStubShim : public HydrogenCodeStub {
virtual void InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) OVERRIDE {
- CallInterfaceDescriptor* call_descriptor =
- isolate()->call_descriptor(CallDescriptorKey::StoreICCall);
+ StoreDescriptor call_descriptor(isolate());
descriptor->Initialize(MajorKey(), call_descriptor);
}
@@ -132,8 +129,7 @@ class KeyedStoreICStubShim : public HydrogenCodeStub {
virtual void InitializeInterfaceDescriptor(
CodeStubInterfaceDescriptor* descriptor) OVERRIDE {
- CallInterfaceDescriptor* call_descriptor =
- isolate()->call_descriptor(CallDescriptorKey::StoreICCall);
+ StoreDescriptor call_descriptor(isolate());
descriptor->Initialize(MajorKey(), call_descriptor);
}

Powered by Google App Engine
This is Rietveld 408576698