Revision: 8898
Author:   [email protected]
Date:     Thu Aug 11 06:56:09 2011
Log: Fixed printing of deoptimization input data without --print-code-verbose.
Review URL: http://codereview.chromium.org/7617008
http://code.google.com/p/v8/source/detail?r=8898

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

=======================================
--- /branches/bleeding_edge/src/objects.cc      Wed Aug 10 03:51:01 2011
+++ /branches/bleeding_edge/src/objects.cc      Thu Aug 11 06:56:09 2011
@@ -6961,12 +6961,16 @@
PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count);
   if (0 == deopt_count) return;

- PrintF(out, "%6s %6s %6s %12s\n", "index", "ast id", "argc", "commands");
+  PrintF(out, "%6s  %6s  %6s  %12s\n", "index", "ast id", "argc",
+         FLAG_print_code_verbose ? "commands" : "");
   for (int i = 0; i < deopt_count; i++) {
     PrintF(out, "%6d  %6d  %6d",
            i, AstId(i)->value(), ArgumentsStackHeight(i)->value());

-    if (!FLAG_print_code_verbose) continue;
+    if (!FLAG_print_code_verbose) {
+      PrintF(out, "\n");
+      continue;
+    }
     // Print details of the frame translation.
     int translation_index = TranslationIndex(i)->value();
TranslationIterator iterator(TranslationByteArray(), translation_index);

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

Reply via email to