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

Issue 785303003: Add option for outputting a deferred loading mapping. (Closed)

Created:
5 years, 11 months ago by sigurdm
Modified:
5 years, 11 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Add option for outputting a deferred loading mapping. With the option --deferred-map=<file> dart2js will output a json-file describing which files will get loaded for a given deferred import. The output looks like: { "_comment": "This mapping shows which compiled `.js` files are needed for a given deferred library import.", "main.dart": { "name": "mainLibrary", "imports": { "lib1": [ "out.js_2.part.js", "out.js_1.part.js" ], "lib2": [ "out.js_2.part.js", "out.js_3.part.js" ], "lib3": [ "out.js_5.part.js" ], "lib4": [ "out.js_6.part.js" ] } }, "lib1.dart": { "name": "<unnamed>", "imports": { "convert": [ "out.js_4.part.js" ] } } } BUG=dartbug.com/21869 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=42727

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Whitespace #

Total comments: 8

Patch Set 4 : Address comments #

Total comments: 14

Patch Set 5 : Address comments #

Patch Set 6 : Updated format #

Total comments: 4

Patch Set 7 : Fix comments #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -34 lines) Patch
M pkg/compiler/lib/src/apiimpl.dart View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 1 2 3 4 5 6 7 3 chunks +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/dart2js.dart View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/deferred_load.dart View 1 2 3 4 5 6 7 5 chunks +68 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/js_backend.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/js_emitter.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 3 4 5 6 7 5 chunks +19 lines, -18 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/source_file_provider.dart View 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
sigurdm
5 years, 11 months ago (2015-01-05 13:59:52 UTC) #2
floitsch
LGTM. I think this information should also be part of --dump-info. Another CL? https://codereview.chromium.org/785303003/diff/40001/pkg/compiler/lib/src/deferred_load.dart File ...
5 years, 11 months ago (2015-01-05 14:10:39 UTC) #3
sigurdm
Yes, I planned to add it to dump-info in a second CL. https://codereview.chromium.org/785303003/diff/40001/pkg/compiler/lib/src/deferred_load.dart File pkg/compiler/lib/src/deferred_load.dart ...
5 years, 11 months ago (2015-01-05 15:23:08 UTC) #4
sigurdm
PTAL
5 years, 11 months ago (2015-01-05 15:24:08 UTC) #5
floitsch
LGTM. https://codereview.chromium.org/785303003/diff/60001/pkg/compiler/lib/src/deferred_load.dart File pkg/compiler/lib/src/deferred_load.dart (right): https://codereview.chromium.org/785303003/diff/60001/pkg/compiler/lib/src/deferred_load.dart#newcode777 pkg/compiler/lib/src/deferred_load.dart:777: /// given deferred import. Add comment what the ...
5 years, 11 months ago (2015-01-05 15:46:19 UTC) #6
sigurdm
https://codereview.chromium.org/785303003/diff/60001/pkg/compiler/lib/src/deferred_load.dart File pkg/compiler/lib/src/deferred_load.dart (right): https://codereview.chromium.org/785303003/diff/60001/pkg/compiler/lib/src/deferred_load.dart#newcode777 pkg/compiler/lib/src/deferred_load.dart:777: /// given deferred import. On 2015/01/05 15:46:19, floitsch wrote: ...
5 years, 11 months ago (2015-01-06 09:02:20 UTC) #7
sigurdm
I updated the format. PTAL
5 years, 11 months ago (2015-01-08 12:38:42 UTC) #8
floitsch
LGTM. https://codereview.chromium.org/785303003/diff/100001/pkg/compiler/lib/src/deferred_load.dart File pkg/compiler/lib/src/deferred_load.dart (right): https://codereview.chromium.org/785303003/diff/100001/pkg/compiler/lib/src/deferred_load.dart#newcode780 pkg/compiler/lib/src/deferred_load.dart:780: /// Where Please check if this goes nicely ...
5 years, 11 months ago (2015-01-08 13:41:08 UTC) #9
sigurdm
https://codereview.chromium.org/785303003/diff/100001/pkg/compiler/lib/src/deferred_load.dart File pkg/compiler/lib/src/deferred_load.dart (right): https://codereview.chromium.org/785303003/diff/100001/pkg/compiler/lib/src/deferred_load.dart#newcode780 pkg/compiler/lib/src/deferred_load.dart:780: /// Where On 2015/01/08 13:41:07, floitsch wrote: > Please ...
5 years, 11 months ago (2015-01-09 10:16:55 UTC) #10
sigurdm
5 years, 11 months ago (2015-01-09 10:37:15 UTC) #11
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as 42727 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698