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

Unified Diff: src/objects-printer.cc

Issue 23691002: Add OptimizedCodeEntry as a new heap object type. An optimized code entry represents an association… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index 9ea060f5ed81f7abcba5a7617de45490ae59480d..dd6cd2c4ed72de35599033850307c80e11fba4f9 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -195,6 +195,9 @@ void HeapObject::HeapObjectPrint(FILE* out) {
case SHARED_FUNCTION_INFO_TYPE:
SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(out);
break;
+ case OPTIMIZED_CODE_ENTRY_TYPE:
+ OptimizedCodeEntry::cast(this)->OptimizedCodeEntryPrint(out);
+ break;
case JS_MESSAGE_OBJECT_TYPE:
JSMessageObject::cast(this)->JSMessageObjectPrint(out);
break;
@@ -890,6 +893,25 @@ void SharedFunctionInfo::SharedFunctionInfoPrint(FILE* out) {
}
+void OptimizedCodeEntry::OptimizedCodeEntryPrint(FILE* out) {
+ HeapObject::PrintHeader(out, "OptimizedCodeEntry");
+ PrintF(out, "\n - native_context = ");
+ native_context()->ShortPrint(out);
+ PrintF(out, "\n - function = ");
+ function()->ShortPrint(out);
+ PrintF(out, "\n - code = ");
+ code()->ShortPrint(out);
+ PrintF(out, "\n - literals = ");
+ literals()->ShortPrint(out);
+ PrintF(out, "\n - next_by_shared_info = ");
+ next_by_shared_info()->ShortPrint(out);
+ PrintF(out, "\n - next_by_native_context = ");
+ next_by_native_context()->ShortPrint(out);
+ PrintF(out, "\n - cacheable = %s", cacheable() ? "true" : "false");
+ PrintF(out, "\n");
+}
+
+
void JSGlobalProxy::JSGlobalProxyPrint(FILE* out) {
PrintF(out, "global_proxy ");
JSObjectPrint(out);
« src/objects.h ('K') | « src/objects-inl.h ('k') | src/objects-visiting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698