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

Unified Diff: src/objects-debug.cc

Issue 21348: Modified printing of some types of heap objects to make the printing more uni... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 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/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-debug.cc
===================================================================
--- src/objects-debug.cc (revision 1255)
+++ src/objects-debug.cc (working copy)
@@ -552,11 +552,11 @@
PrintF(" - name: ");
name()->ShortPrint();
PrintF("\n - expected_nof_properties: %d", expected_nof_properties());
- PrintF("\n - instance class name =");
+ PrintF("\n - instance class name = ");
instance_class_name()->Print();
- PrintF("\n - code =");
+ PrintF("\n - code = ");
code()->ShortPrint();
- PrintF("\n - source code =");
+ PrintF("\n - source code = ");
GetSourceCode()->ShortPrint();
PrintF("\n - lazy load: %s",
lazy_load_data() == Heap::undefined_value() ? "no" : "yes");
@@ -568,7 +568,7 @@
PrintF("\n - end position = %d", end_position());
PrintF("\n - is expression = %d", is_expression());
PrintF("\n - debug info = ");
- debug_info()->Print();
+ debug_info()->ShortPrint();
PrintF("\n - length = %d", length());
PrintF("\n");
}
@@ -752,7 +752,7 @@
}
void AccessorInfo::AccessorInfoPrint() {
- PrintF("AccessorInfo");
+ HeapObject::PrintHeader("AccessorInfo");
PrintF("\n - getter: ");
getter()->ShortPrint();
PrintF("\n - setter: ");
@@ -773,7 +773,7 @@
}
void AccessCheckInfo::AccessCheckInfoPrint() {
- PrintF("AccessCheckInfo");
+ HeapObject::PrintHeader("AccessCheckInfo");
PrintF("\n - named_callback: ");
named_callback()->ShortPrint();
PrintF("\n - indexed_callback: ");
@@ -793,7 +793,7 @@
}
void InterceptorInfo::InterceptorInfoPrint() {
- PrintF("InterceptorInfo");
+ HeapObject::PrintHeader("InterceptorInfo");
PrintF("\n - getter: ");
getter()->ShortPrint();
PrintF("\n - setter: ");
@@ -815,7 +815,7 @@
}
void CallHandlerInfo::CallHandlerInfoPrint() {
- PrintF("CallHandlerInfo");
+ HeapObject::PrintHeader("CallHandlerInfo");
PrintF("\n - callback: ");
callback()->ShortPrint();
PrintF("\n - data: ");
@@ -843,7 +843,7 @@
}
void FunctionTemplateInfo::FunctionTemplateInfoPrint() {
- PrintF("FunctionTemplateInfo");
+ HeapObject::PrintHeader("FunctionTemplateInfo");
PrintF("\n - tag: ");
tag()->ShortPrint();
PrintF("\n - property_list: ");
@@ -881,7 +881,7 @@
}
void ObjectTemplateInfo::ObjectTemplateInfoPrint() {
- PrintF("ObjectTemplateInfo");
+ HeapObject::PrintHeader("ObjectTemplateInfo");
PrintF("\n - constructor: ");
constructor()->ShortPrint();
PrintF("\n - internal_field_count: ");
@@ -895,7 +895,7 @@
}
void SignatureInfo::SignatureInfoPrint() {
- PrintF("SignatureInfo");
+ HeapObject::PrintHeader("SignatureInfo");
PrintF("\n - receiver: ");
receiver()->ShortPrint();
PrintF("\n - args: ");
@@ -908,7 +908,7 @@
}
void TypeSwitchInfo::TypeSwitchInfoPrint() {
- PrintF("TypeSwitchInfo");
+ HeapObject::PrintHeader("TypeSwitchInfo");
PrintF("\n - types: ");
types()->ShortPrint();
}
@@ -950,15 +950,15 @@
void DebugInfo::DebugInfoPrint() {
- PrintF("DebugInfo");
- PrintF("\n - shared");
+ HeapObject::PrintHeader("DebugInfo");
+ PrintF("\n - shared: ");
shared()->ShortPrint();
- PrintF("\n - original_code");
+ PrintF("\n - original_code: ");
original_code()->ShortPrint();
- PrintF("\n - code");
+ PrintF("\n - code: ");
code()->ShortPrint();
- PrintF("\n - break_points");
- break_points()->ShortPrint();
+ PrintF("\n - break_points: ");
+ break_points()->Print();
}
@@ -972,11 +972,11 @@
void BreakPointInfo::BreakPointInfoPrint() {
- PrintF("BreakPointInfo");
- PrintF("\n - code_position %d", code_position());
- PrintF("\n - source_position %d", source_position());
- PrintF("\n - statement_position %d", statement_position());
- PrintF("\n - break_point_objects ");
+ HeapObject::PrintHeader("BreakPointInfo");
+ PrintF("\n - code_position: %d", code_position());
+ PrintF("\n - source_position: %d", source_position());
+ PrintF("\n - statement_position: %d", statement_position());
+ PrintF("\n - break_point_objects: ");
break_point_objects()->ShortPrint();
}
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698