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

Unified Diff: runtime/vm/parser.cc

Issue 10752017: Rename Script's source to Source. Trace parser (--trace-parser) only if source is available (thus s… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | « runtime/vm/object_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 9490)
+++ runtime/vm/parser.cc (working copy)
@@ -61,11 +61,14 @@
public:
TraceParser(intptr_t token_pos, const Script& script, const char* msg) {
if (FLAG_trace_parser) {
- intptr_t line, column;
- script.GetTokenLocation(token_pos, &line, &column);
- PrintIndent();
- OS::Print("%s (line %d, col %d, token %d)\n",
- msg, line, column, token_pos);
+ // Skips tracing of bootstrap libraries.
+ if (script.HasSource()) {
+ intptr_t line, column;
+ script.GetTokenLocation(token_pos, &line, &column);
+ PrintIndent();
+ OS::Print("%s (line %d, col %d, token %d)\n",
+ msg, line, column, token_pos);
+ }
indent_++;
}
}
« no previous file with comments | « runtime/vm/object_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698