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

Issue 2884783002: Enhance DirectiveListener to collect import/exports with combinators. (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

Enhance DirectiveListener to collect import/exports with combinators. We need combinators to build export scopes for DILL libraries. R=ahe@google.com, paulberry@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/b3837a5e282a5e430dfb15b2357efdf30878d11f

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add only combinator identifiers. #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -53 lines) Patch
M pkg/front_end/lib/src/dependency_grapher_impl.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/directive_listener.dart View 1 3 chunks +103 lines, -23 lines 6 comments Download
M pkg/front_end/lib/src/incremental/file_state.dart View 6 chunks +70 lines, -26 lines 7 comments Download
M pkg/front_end/test/src/incremental/file_state_test.dart View 1 chunk +58 lines, -0 lines 0 comments Download
M pkg/front_end/tool/fasta_perf.dart View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
3 years, 7 months ago (2017-05-15 19:53:02 UTC) #1
Paul Berry
lgtm https://codereview.chromium.org/2884783002/diff/1/pkg/front_end/lib/src/incremental/file_state.dart File pkg/front_end/lib/src/incremental/file_state.dart (right): https://codereview.chromium.org/2884783002/diff/1/pkg/front_end/lib/src/incremental/file_state.dart#newcode134 pkg/front_end/lib/src/incremental/file_state.dart:134: _importedLibraries.add(coreFile); Should we report an error? It seems ...
3 years, 7 months ago (2017-05-15 20:28:30 UTC) #2
scheglov
Committed patchset #2 (id:20001) manually as b3837a5e282a5e430dfb15b2357efdf30878d11f (presubmit successful).
3 years, 7 months ago (2017-05-15 20:59:21 UTC) #4
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2884783002/diff/20001/pkg/front_end/lib/src/fasta/source/directive_listener.dart File pkg/front_end/lib/src/fasta/source/directive_listener.dart (right): https://codereview.chromium.org/2884783002/diff/20001/pkg/front_end/lib/src/fasta/source/directive_listener.dart#newcode63 pkg/front_end/lib/src/fasta/source/directive_listener.dart:63: List<String> names = _popList(count); I'm not opposed to keeping ...
3 years, 7 months ago (2017-05-15 22:18:53 UTC) #5
scheglov
Thank you for the comment. I've uploaded a new CL with the changes. https://codereview.chromium.org/2884783002/diff/20001/pkg/front_end/lib/src/fasta/source/directive_listener.dart File ...
3 years, 7 months ago (2017-05-16 00:14:24 UTC) #6
Siggi Cherem (dart-lang)
3 years, 7 months ago (2017-05-16 21:43:47 UTC) #7
Message was sent while issue was closed.
thanks

https://codereview.chromium.org/2884783002/diff/20001/pkg/front_end/lib/src/i...
File pkg/front_end/lib/src/incremental/file_state.dart (right):

https://codereview.chromium.org/2884783002/diff/20001/pkg/front_end/lib/src/i...
pkg/front_end/lib/src/incremental/file_state.dart:178: /// TODO(scheglov) Ask VM
people whether all these libraries are required.
On 2017/05/16 00:14:24, scheglov wrote:
> On 2017/05/15 22:18:53, Siggi Cherem (dart-lang) wrote:
> > I think it's safe to remove this.
> > 
> > The VM needs these libraries, but not from us :) - we want it to get them
from
> a
> > platform.dill file that is built separately and not from the app. The VM now
> > supports this, but fasta still includes them because we haven't finished
> moving
> > over to just use the platform.dill for the VM tests and performance bots. As
> > Slava said on that email, in the future these platform.dill will be replaced
> > with a VM snapshot.
> > 
> > If those libraries get imported by the user, then yes we will need to be
> handle
> > them, but that's a regular import at that point.
> 
> It's not safe to remove here.
> TargetImplemenation.loadExtraRequiredLibraries() schedules all of them.
> Maybe something else should also be changed in Fasta?

I see, then yes :) we need to update fasta to stop doing it unless we pass a
flag with the list of libraries to enqueue

Powered by Google App Engine
This is Rietveld 408576698