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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart2js.dart

Issue 90713003: Dart2js option to dump info about compilation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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
Index: sdk/lib/_internal/compiler/implementation/dart2js.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
index 1ab6de7eabceae13043cbee7c6141cab1e991ade..f51abf55c92f3d379393d710e25a32263ef755ed 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -276,6 +276,7 @@ Future compile(List<String> argv) {
new OptionHandler('--categories=.*', setCategories),
new OptionHandler('--disable-type-inference', passThrough),
new OptionHandler('--terse', passThrough),
+ new OptionHandler('--dump-info', passThrough),
new OptionHandler('--disallow-unsafe-eval',
(_) => hasDisallowUnsafeEval = true),
new OptionHandler('-D.+=.*', addInEnvironment),
@@ -360,6 +361,9 @@ Future compile(List<String> argv) {
" \"Content-Security-Policy: script-src 'self'\"");
} else if (extension == 'js.map' || extension == 'dart.map') {
uri = sourceMapOut;
+ } else if (extension == 'info.html') {
+ String outName = out.path.substring(out.path.lastIndexOf('/') + 1);
+ uri = out.resolve('${outName}.$extension');
} else {
fail('Error: Unknown extension: $extension');
}
@@ -566,6 +570,8 @@ be removed in a future version:
unsupported category, for example, --categories=help. To enable
all categories, use --categories=all.
+ --dump-info
+ Generates an out.info.html file with information about the generated code.
'''.trim());
}

Powered by Google App Engine
This is Rietveld 408576698