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

Unified Diff: runtime/vm/parser.cc

Issue 10689099: Add --trace_type_check_elimination flag for debugging purposes. (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/parser.h ('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 9470)
+++ runtime/vm/parser.cc (working copy)
@@ -5765,6 +5765,22 @@
}
+void Parser::PrintMessage(const Script& script,
+ intptr_t token_pos,
+ const char* message_header,
+ const char* format, ...) {
+ va_list args;
+ va_start(args, format);
+ const intptr_t kMessageBufferSize = 512;
+ char message_buffer[kMessageBufferSize];
+ FormatMessage(script, token_pos, message_header,
+ message_buffer, kMessageBufferSize,
+ format, args);
+ va_end(args);
+ OS::Print("%s", message_buffer);
+}
+
+
void Parser::ErrorMsg(intptr_t token_pos, const char* format, ...) {
va_list args;
va_start(args, format);
« no previous file with comments | « runtime/vm/parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698