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

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: Updated format 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
Index: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index 0372b8534d60c2bfe79bd2d09d8f1a47507fb8f3..05734e94e733a8121902b6028432674833daf004 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -333,6 +333,7 @@ Future 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),
@@ -598,6 +599,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:

Powered by Google App Engine
This is Rietveld 408576698