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

Issue 2872903005: Rework DillLoader to allow adding multiple dills. (Closed)

Created:
3 years, 7 months ago by scheglov
Modified:
3 years, 7 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Rework DillLoader to allow adding multiple dills. This allows us to compose a consistent bundle with SDK and the transitive closure of required libraries for a libarary, and then compile it separately (or as a part of its own library cycle). There is still more data public than I'd like, but I will leave this clean up fo later. R=ahe@google.com, kmillikin@google.com, paulberry@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/8751b910622ff3b77705289e327071e9225887ec

Patch Set 1 #

Total comments: 14

Patch Set 2 : Updates for review comments. #

Total comments: 5

Patch Set 3 : Fixes for review changes. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -45 lines) Patch
M pkg/front_end/lib/src/fasta/dill/dill_loader.dart View 1 1 chunk +16 lines, -24 lines 3 comments Download
M pkg/front_end/lib/src/fasta/dill/dill_target.dart View 1 2 3 chunks +3 lines, -7 lines 0 comments Download
M pkg/front_end/lib/src/fasta/fasta.dart View 1 2 4 chunks +12 lines, -4 lines 0 comments Download
M pkg/front_end/test/fasta/testing/suite.dart View 1 1 chunk +1 line, -3 lines 0 comments Download
M pkg/kernel/lib/kernel.dart View 1 chunk +6 lines, -1 line 0 comments Download
M pkg/kernel/test/closures/suite.dart View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M pkg/kernel/test/interpreter/suite.dart View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
scheglov
3 years, 7 months ago (2017-05-09 19:34:55 UTC) #1
Siggi Cherem (dart-lang)
Thanks for doing this! I have a few API suggestions and minor nits. https://codereview.chromium.org/2872903005/diff/1/pkg/front_end/lib/src/fasta/dill/dill_loader.dart File ...
3 years, 7 months ago (2017-05-09 20:14:30 UTC) #2
scheglov
PTAL https://codereview.chromium.org/2872903005/diff/1/pkg/front_end/lib/src/fasta/dill/dill_loader.dart File pkg/front_end/lib/src/fasta/dill/dill_loader.dart (right): https://codereview.chromium.org/2872903005/diff/1/pkg/front_end/lib/src/fasta/dill/dill_loader.dart#newcode16 pkg/front_end/lib/src/fasta/dill/dill_loader.dart:16: Program program; On 2017/05/09 20:14:30, Siggi Cherem (dart-lang) ...
3 years, 7 months ago (2017-05-09 20:32:22 UTC) #3
Siggi Cherem (dart-lang)
+Kevin for changes to kernel. Changes to dill loader LGTM, I have one follow-up question/suggestion ...
3 years, 7 months ago (2017-05-09 22:12:37 UTC) #5
scheglov
https://codereview.chromium.org/2872903005/diff/1/pkg/front_end/lib/src/fasta/dill/dill_loader.dart File pkg/front_end/lib/src/fasta/dill/dill_loader.dart (right): https://codereview.chromium.org/2872903005/diff/1/pkg/front_end/lib/src/fasta/dill/dill_loader.dart#newcode20 pkg/front_end/lib/src/fasta/dill/dill_loader.dart:20: /// Add already compiled libraries from the given [dill]. ...
3 years, 7 months ago (2017-05-10 00:47:41 UTC) #6
Kevin Millikin (Google)
Kernel changes LGTM.
3 years, 7 months ago (2017-05-11 09:33:29 UTC) #7
ahe
lgtm Nice! https://codereview.chromium.org/2872903005/diff/20001/pkg/front_end/lib/src/fasta/dill/dill_target.dart File pkg/front_end/lib/src/fasta/dill/dill_target.dart (right): https://codereview.chromium.org/2872903005/diff/20001/pkg/front_end/lib/src/fasta/dill/dill_target.dart#newcode40 pkg/front_end/lib/src/fasta/dill/dill_target.dart:40: internalError("not implemented"); "Internal error: Unsupported operation." https://codereview.chromium.org/2872903005/diff/20001/pkg/front_end/lib/src/fasta/fasta.dart ...
3 years, 7 months ago (2017-05-11 10:09:49 UTC) #8
scheglov
https://codereview.chromium.org/2872903005/diff/20001/pkg/front_end/lib/src/fasta/fasta.dart File pkg/front_end/lib/src/fasta/fasta.dart (right): https://codereview.chromium.org/2872903005/diff/20001/pkg/front_end/lib/src/fasta/fasta.dart#newcode252 pkg/front_end/lib/src/fasta/fasta.dart:252: ticker.logMs("Read platform file"); On 2017/05/11 10:09:49, ahe wrote: > ...
3 years, 7 months ago (2017-05-11 15:53:11 UTC) #9
scheglov
Committed patchset #3 (id:40001) manually as 8751b910622ff3b77705289e327071e9225887ec (presubmit successful).
3 years, 7 months ago (2017-05-11 15:56:43 UTC) #11
ahe
https://codereview.chromium.org/2872903005/diff/40001/pkg/front_end/lib/src/fasta/dill/dill_loader.dart File pkg/front_end/lib/src/fasta/dill/dill_loader.dart (right): https://codereview.chromium.org/2872903005/diff/40001/pkg/front_end/lib/src/fasta/dill/dill_loader.dart#newcode37 pkg/front_end/lib/src/fasta/dill/dill_loader.dart:37: Future<Null> buildOutline(DillLibraryBuilder builder) async { Please stop sorting methods ...
3 years, 7 months ago (2017-05-19 09:15:04 UTC) #12
scheglov
https://codereview.chromium.org/2872903005/diff/40001/pkg/front_end/lib/src/fasta/dill/dill_loader.dart File pkg/front_end/lib/src/fasta/dill/dill_loader.dart (right): https://codereview.chromium.org/2872903005/diff/40001/pkg/front_end/lib/src/fasta/dill/dill_loader.dart#newcode37 pkg/front_end/lib/src/fasta/dill/dill_loader.dart:37: Future<Null> buildOutline(DillLibraryBuilder builder) async { On 2017/05/19 09:15:03, ahe ...
3 years, 7 months ago (2017-05-19 16:03:26 UTC) #13
ahe
3 years, 7 months ago (2017-05-22 09:01:37 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/2872903005/diff/40001/pkg/front_end/lib/src/f...
File pkg/front_end/lib/src/fasta/dill/dill_loader.dart (right):

https://codereview.chromium.org/2872903005/diff/40001/pkg/front_end/lib/src/f...
pkg/front_end/lib/src/fasta/dill/dill_loader.dart:37: Future<Null>
buildOutline(DillLibraryBuilder builder) async {
On 2017/05/19 16:03:25, scheglov wrote:
> On 2017/05/19 09:15:03, ahe wrote:
> > Please stop sorting methods by name, it produces unnecessary merge conflicts
> and
> > makes it harder to use "git blame".
> 
> Conflicts will happen only once.
> Hopefully not too hard to merge for this small file.
> 
> I find it much more consistent to sort everything than to rely on vague and
> impossible to get explanation about ad hoc order. Again, help to reduce the
> cognitive load - no need to think, just do as everywhere.

What you personally perceive as reducing cognitive load has exactly the opposite
effect on me. If you feel that we should change our coding style, you should
suggest that we do so, and get agreement.

FWIW, following up on a highly contentious thread about automated formatting
isn't a good way to make such a proposal and not a great way to establish
agreement.

Powered by Google App Engine
This is Rietveld 408576698