Revision: 12212
Author:   [email protected]
Date:     Fri Jul 27 05:06:26 2012
Log:      Print type feedback info together with code objects.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/10833049
http://code.google.com/p/v8/source/detail?r=12212

Modified:
 /branches/bleeding_edge/src/objects-printer.cc
 /branches/bleeding_edge/src/objects.cc

=======================================
--- /branches/bleeding_edge/src/objects-printer.cc      Fri Jul 27 02:54:56 2012
+++ /branches/bleeding_edge/src/objects-printer.cc      Fri Jul 27 05:06:26 2012
@@ -596,9 +596,9 @@

 void TypeFeedbackInfo::TypeFeedbackInfoPrint(FILE* out) {
   HeapObject::PrintHeader(out, "TypeFeedbackInfo");
-  PrintF(out, "\n - ic_total_count: %d, ic_with_type_info_count: %d",
+  PrintF(out, " - ic_total_count: %d, ic_with_type_info_count: %d\n",
          ic_total_count(), ic_with_type_info_count());
-  PrintF(out, "\n - type_feedback_cells: ");
+  PrintF(out, " - type_feedback_cells: ");
   type_feedback_cells()->FixedArrayPrint(out);
 }

=======================================
--- /branches/bleeding_edge/src/objects.cc      Thu Jul 26 07:55:22 2012
+++ /branches/bleeding_edge/src/objects.cc      Fri Jul 27 05:06:26 2012
@@ -8511,6 +8511,8 @@
       PrintF(out, "\n");
     }
     PrintF(out, "\n");
+    // Just print if type feedback info is ever used for optimized code.
+    ASSERT(type_feedback_info()->IsUndefined());
   } else if (kind() == FUNCTION) {
     unsigned offset = stack_check_table_offset();
     // If there is no stack check table, the "table start" will at or after
@@ -8527,6 +8529,10 @@
       }
       PrintF(out, "\n");
     }
+    if (!type_feedback_info()->IsUndefined()) {
+ TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(out);
+      PrintF(out, "\n");
+    }
   }

   PrintF("RelocInfo (size = %d)\n", relocation_size());

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to