Chromium Code Reviews| Index: dart/lib/compiler/implementation/compiler.dart |
| diff --git a/dart/lib/compiler/implementation/compiler.dart b/dart/lib/compiler/implementation/compiler.dart |
| index 199712912055aedb88a62c36fc2a508c627dea22..b9a224af1539e54b332dc4df38571717ed7fecfe 100644 |
| --- a/dart/lib/compiler/implementation/compiler.dart |
| +++ b/dart/lib/compiler/implementation/compiler.dart |
| @@ -15,6 +15,11 @@ const bool REPORT_EXCESS_RESOLUTION = false; |
| const bool REPORT_PASS2_OPTIMIZATIONS = false; |
| /** |
|
ahe
2012/08/30 23:00:47
I forgot to add a comment here.
|
| + */ |
| +const String BUILD_ID = 'build number could not be determined'; |
| + |
| + |
| +/** |
| * Contains backend-specific data that is used throughout the compilation of |
| * one work item. |
| */ |
| @@ -229,9 +234,7 @@ class Compiler implements DiagnosticListener { |
| reportDiagnostic(spanFromElement(element), |
| MessageKind.COMPILER_CRASHED.error().toString(), |
| api.Diagnostic.CRASH); |
| - // TODO(ahe): Obtain the build ID. |
| - var buildId = 'build number could not be determined'; |
| - print(MessageKind.PLEASE_REPORT_THE_CRASH.message([buildId])); |
| + print(MessageKind.PLEASE_REPORT_THE_CRASH.message([BUILD_ID])); |
| } |
| void cancel([String reason, Node node, Token token, |
| @@ -522,6 +525,7 @@ class Compiler implements DiagnosticListener { |
| } |
| void runCompiler(Uri uri) { |
| + log('compiling $uri ($BUILD_ID)'); |
| scanBuiltinLibraries(); |
| mainApp = scanner.loadLibrary(uri, null, uri); |
| libraries.forEach((_, library) { |