| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /// An entrypoint used to run portions of dart2js and measure its performance. | 5 /// An entrypoint used to run portions of dart2js and measure its performance. |
| 6 library compiler.tool.perf; | 6 library compiler.tool.perf; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 | 374 |
| 375 (reporter as CompilerDiagnosticReporter) | 375 (reporter as CompilerDiagnosticReporter) |
| 376 .reportSuppressedMessagesSummary(); | 376 .reportSuppressedMessagesSummary(); |
| 377 | 377 |
| 378 if (compilationFailed) { | 378 if (compilationFailed) { |
| 379 // TODO(sigmund): more diagnostics? | 379 // TODO(sigmund): more diagnostics? |
| 380 print('compilation failed!'); | 380 print('compilation failed!'); |
| 381 exit(1); | 381 exit(1); |
| 382 } | 382 } |
| 383 | 383 |
| 384 backend.onResolutionEnd(); |
| 384 closeResolution(); | 385 closeResolution(); |
| 385 var program = (backend as dynamic).kernelTask.program; | 386 var program = (backend as dynamic).kernelTask.program; |
| 386 print('total libraries: ${program.libraries.length}'); | 387 print('total libraries: ${program.libraries.length}'); |
| 387 }); | 388 }); |
| 388 } | 389 } |
| OLD | NEW |