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

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 313899526027343a0dbf7eacfeff9e9242a8f0a5..2e5135be0731fde9cc4be7f3cbcc159c82050d60 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -273,6 +273,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),
@@ -357,6 +358,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');
}
@@ -562,6 +566,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