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

Unified Diff: src/compiler/linkage.cc

Issue 552803002: Get CallInterfaceDescriptor directly from CodeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/linkage.cc
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc
index 2bdb5af0e54b556e92c5a681d63199c8d0bc2990..f670bd1c7a90627d0b4043b542534cdcd68de039 100644
--- a/src/compiler/linkage.cc
+++ b/src/compiler/linkage.cc
@@ -51,9 +51,9 @@ Linkage::Linkage(CompilationInfo* info) : info_(info) {
incoming_ = GetJSCallDescriptor(1 + shared->formal_parameter_count());
} else if (info->code_stub() != NULL) {
// Use the code stub interface descriptor.
- HydrogenCodeStub* stub = info->code_stub();
- CodeStubInterfaceDescriptor descriptor(stub);
- incoming_ = GetStubCallDescriptor(&descriptor);
+ CallInterfaceDescriptor descriptor =
+ info->code_stub()->GetCallInterfaceDescriptor();
+ incoming_ = GetStubCallDescriptor(descriptor);
} else {
incoming_ = NULL; // TODO(titzer): ?
}
@@ -101,7 +101,7 @@ CallDescriptor* Linkage::GetRuntimeCallDescriptor(
CallDescriptor* Linkage::GetStubCallDescriptor(
- CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count,
+ CallInterfaceDescriptor descriptor, int stack_parameter_count,
CallDescriptor::Flags flags) {
return GetStubCallDescriptor(descriptor, stack_parameter_count, flags,
this->info_->zone());
@@ -147,7 +147,7 @@ CallDescriptor* Linkage::GetRuntimeCallDescriptor(
CallDescriptor* Linkage::GetStubCallDescriptor(
- CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count,
+ CallInterfaceDescriptor descriptor, int stack_parameter_count,
CallDescriptor::Flags flags, Zone* zone) {
UNIMPLEMENTED();
return NULL;

Powered by Google App Engine
This is Rietveld 408576698