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

Unified Diff: vm/compiler_stats.cc

Issue 9462003: Changes to shrink the token stream representation from two words to one word. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « vm/compiler_stats.h ('k') | vm/dart.cc » ('j') | vm/object.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/compiler_stats.cc
===================================================================
--- vm/compiler_stats.cc (revision 4579)
+++ vm/compiler_stats.cc (working copy)
@@ -25,6 +25,8 @@
Timer CompilerStats::scanner_timer(true, "scanner timer");
intptr_t CompilerStats::num_tokens_total = 0;
+intptr_t CompilerStats::num_literal_tokens_total = 0;
+intptr_t CompilerStats::num_ident_tokens_total = 0;
intptr_t CompilerStats::num_tokens_consumed = 0;
intptr_t CompilerStats::num_token_checks = 0;
intptr_t CompilerStats::num_tokens_rewind = 0;
@@ -36,6 +38,8 @@
}
OS::Print("==== Compiler Stats ====\n");
OS::Print("Number of tokens: %ld\n", num_tokens_total);
+ OS::Print(" Literal tokens: %ld\n", num_literal_tokens_total);
+ OS::Print(" Ident tokens: %ld\n", num_ident_tokens_total);
OS::Print("Tokens consumed: %ld (%.2f times number of tokens)\n",
num_tokens_consumed,
(1.0 * num_tokens_consumed) / num_tokens_total);
@@ -62,4 +66,3 @@
}
} // namespace dart
-
« no previous file with comments | « vm/compiler_stats.h ('k') | vm/dart.cc » ('j') | vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698