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

Unified Diff: pkg/compiler/lib/src/dart2js.dart

Issue 785303003: Add option for outputting a deferred loading mapping. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 5 years, 11 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 | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index aa564ed74fd86d2b528149df6561938463e28e33..4d5edf8db3aba0c39610f65adb07a2a00b63c77b 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -333,6 +333,7 @@ Future<api.CompilationResult> compile(List<String> argv) {
new OptionHandler('--categories=.*', setCategories),
new OptionHandler('--disable-type-inference', implyCompilation),
new OptionHandler('--terse', passThrough),
+ new OptionHandler('--deferred-map=.+', implyCompilation),
new OptionHandler('--dump-info', implyCompilation),
new OptionHandler('--disallow-unsafe-eval',
(_) => hasDisallowUnsafeEval = true),
@@ -599,6 +600,10 @@ be removed in a future version:
unsupported category, for example, --categories=help. To enable
all categories, use --categories=all.
+ --deferred-map=<file>
+ Generates a json file with a mapping from each deferred import to a list of
+ the part.js files that will be loaded.
+
--dump-info
Generates an out.info.json file with information about the generated code.
You can inspect the generated file with the viewer at:
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698