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

Issue 2869563002: Initial version of Fasta based IncrementalKernelGenerator. (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

Initial version of Fasta based IncrementalKernelGenerator. No incrementality yet. In a separate experiment I can load SDK kernel and resolve against it. So, I will add it in a following CL, or maybe even generalize to any library. R=paulberry@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/9acca5f46423c35fea5002bf09f951ba6b9ac9ea

Patch Set 1 #

Total comments: 7

Patch Set 2 : Restore ProcessedOptions, build TranslateUri in it. #

Patch Set 3 : Add mock SDK. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -242 lines) Patch
M pkg/front_end/lib/compiler_options.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/front_end/lib/incremental_kernel_generator.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/base/processed_options.dart View 1 4 chunks +16 lines, -12 lines 1 comment Download
M pkg/front_end/lib/src/dependency_grapher_impl.dart View 1 4 chunks +7 lines, -6 lines 0 comments Download
M pkg/front_end/lib/src/incremental_kernel_generator_impl.dart View 1 2 chunks +61 lines, -108 lines 2 comments Download
M pkg/front_end/test/incremental_kernel_generator_test.dart View 2 chunks +105 lines, -105 lines 0 comments Download
M pkg/front_end/test/src/base/processed_options_test.dart View 1 4 chunks +10 lines, -10 lines 0 comments Download
A pkg/front_end/test/src/incremental/mock_sdk.dart View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
M pkg/front_end/test/subpackage_relationships_test.dart View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
scheglov
3 years, 7 months ago (2017-05-07 01:22:50 UTC) #1
Paul Berry
https://codereview.chromium.org/2869563002/diff/1/pkg/front_end/lib/incremental_kernel_generator.dart File pkg/front_end/lib/incremental_kernel_generator.dart (right): https://codereview.chromium.org/2869563002/diff/1/pkg/front_end/lib/incremental_kernel_generator.dart#newcode59 pkg/front_end/lib/incremental_kernel_generator.dart:59: new IncrementalKernelGeneratorImpl(source, options); Why are you removing ProcessedOptions? Is ...
3 years, 7 months ago (2017-05-07 14:17:40 UTC) #4
scheglov
PTAL https://codereview.chromium.org/2869563002/diff/1/pkg/front_end/lib/incremental_kernel_generator.dart File pkg/front_end/lib/incremental_kernel_generator.dart (right): https://codereview.chromium.org/2869563002/diff/1/pkg/front_end/lib/incremental_kernel_generator.dart#newcode59 pkg/front_end/lib/incremental_kernel_generator.dart:59: new IncrementalKernelGeneratorImpl(source, options); On 2017/05/07 14:17:40, Paul Berry ...
3 years, 7 months ago (2017-05-07 17:38:49 UTC) #5
Paul Berry
lgtm https://codereview.chromium.org/2869563002/diff/1/pkg/front_end/test/incremental_kernel_generator_test.dart File pkg/front_end/test/incremental_kernel_generator_test.dart (right): https://codereview.chromium.org/2869563002/diff/1/pkg/front_end/test/incremental_kernel_generator_test.dart#newcode34 pkg/front_end/test/incremental_kernel_generator_test.dart:34: /// with code and some with only outlines. ...
3 years, 7 months ago (2017-05-08 12:55:14 UTC) #6
scheglov
Committed patchset #3 (id:40001) manually as 9acca5f46423c35fea5002bf09f951ba6b9ac9ea (presubmit successful).
3 years, 7 months ago (2017-05-08 16:19:32 UTC) #8
Siggi Cherem (dart-lang)
3 years, 7 months ago (2017-05-08 17:44:29 UTC) #9
Message was sent while issue was closed.
a couple drive-by comments

https://codereview.chromium.org/2869563002/diff/40001/pkg/front_end/lib/src/b...
File pkg/front_end/lib/src/base/processed_options.dart (right):

https://codereview.chromium.org/2869563002/diff/40001/pkg/front_end/lib/src/b...
pkg/front_end/lib/src/base/processed_options.dart:10: import
'package:front_end/src/fasta/translate_uri.dart';
a very low priority comment - nothing to do on this CL:

At some point we should unify the two APIs.

I propose that we change translate_uri into uri_resolver. UriResolver is more
robust and has a better name. Eventually TranslateUri.parse should not be there
because all of fasta's APIs will get the library map from the options (like you
do here).

To reduce the churn, I think it will be easier to first change how we pass
around options, then get rid of the need of TranslateUri.parse, then do the
rename.

https://codereview.chromium.org/2869563002/diff/40001/pkg/front_end/lib/src/i...
File pkg/front_end/lib/src/incremental_kernel_generator_impl.dart (right):

https://codereview.chromium.org/2869563002/diff/40001/pkg/front_end/lib/src/i...
pkg/front_end/lib/src/incremental_kernel_generator_impl.dart:58: // Firstly, we
don't "write" anything here.
+1 :) it should not be called 'write'.

https://codereview.chromium.org/2869563002/diff/40001/pkg/front_end/lib/src/i...
pkg/front_end/lib/src/incremental_kernel_generator_impl.dart:60: // This is too
interactive and not API-clients friendly.
agree - we need to add a diagnostic API and pass it around.

Initially we had an 'onError' handler in compiler_options, but I think we might
need something more tailored to diagnostics.

Powered by Google App Engine
This is Rietveld 408576698