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

Unified Diff: src/interface-descriptors.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/interface-descriptors.cc
diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc
index a233fac8d6bcacfda51555093cf194bb8ec58400..77438b60bf64d5344ec3bfbc87ff16f789fd30df 100644
--- a/src/interface-descriptors.cc
+++ b/src/interface-descriptors.cc
@@ -42,6 +42,24 @@ void CallInterfaceDescriptorData::Initialize(
}
+const char* CallInterfaceDescriptor::DebugName(Isolate* isolate) {
+ CallInterfaceDescriptorData* start = isolate->call_descriptor_data(0);
+ int index = data_ - start;
+ DCHECK(index < CallDescriptors::NUMBER_OF_DESCRIPTORS);
+ CallDescriptors::Key key = static_cast<CallDescriptors::Key>(index);
+ switch (key) {
+#define DEF_CASE(NAME) \
+ case CallDescriptors::NAME: \
+ return #NAME " Descriptor";
+ INTERFACE_DESCRIPTOR_LIST(DEF_CASE)
+#undef DEF_CASE
+ case CallDescriptors::NUMBER_OF_DESCRIPTORS:
+ break;
+ }
+ return "";
+}
+
+
void LoadDescriptor::Initialize(CallInterfaceDescriptorData* data) {
Register registers[] = {ContextRegister(), ReceiverRegister(),
NameRegister()};

Powered by Google App Engine
This is Rietveld 408576698