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

Issue 2904203003: Don't recreate CoreTypes in transformers. Pass it in. (Closed)

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

Description

Don't recreate CoreTypes in transformers. Pass it in. The same will be done later for ClassHierarchy. So, it would be up to the client to decide which flavour to create, and whether the same instance can be reused. R=ahe@google.com, kmillikin@google.com, paulberry@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/3803374d3216ce2b0e6694a96b3fb62cb0618d74

Patch Set 1 #

Total comments: 2

Patch Set 2 : Create CoreTypes in AnalyzerLoader. #

Total comments: 12

Patch Set 3 : Fixes for two review comments. #

Patch Set 4 : Don't create CoreTypes in createOutlines() on InputError. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -108 lines) Patch
M pkg/analyzer/lib/src/fasta/analyzer_loader.dart View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/fasta.dart View 1 2 4 chunks +6 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_target.dart View 1 2 3 4 chunks +3 lines, -5 lines 0 comments Download
M pkg/kernel/bin/transform.dart View 1 2 3 2 chunks +9 lines, -6 lines 0 comments Download
M pkg/kernel/lib/target/flutter.dart View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M pkg/kernel/lib/target/targets.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/kernel/lib/target/vm.dart View 1 2 3 2 chunks +9 lines, -13 lines 0 comments Download
M pkg/kernel/lib/target/vmcc.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/kernel/lib/target/vmreify.dart View 3 chunks +5 lines, -5 lines 0 comments Download
M pkg/kernel/lib/transformations/closure_conversion.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/kernel/lib/transformations/continuation.dart View 2 chunks +2 lines, -7 lines 0 comments Download
M pkg/kernel/lib/transformations/generic_types_reification.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/kernel/lib/transformations/insert_covariance_checks.dart View 2 chunks +2 lines, -3 lines 0 comments Download
M pkg/kernel/lib/transformations/insert_type_checks.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M pkg/kernel/lib/transformations/method_call.dart View 2 chunks +6 lines, -5 lines 0 comments Download
M pkg/kernel/lib/transformations/mixin_full_resolution.dart View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M pkg/kernel/lib/transformations/reify/reify_transformer.dart View 3 chunks +9 lines, -7 lines 0 comments Download
M pkg/kernel/lib/transformations/treeshaker.dart View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M pkg/kernel/test/baseline_tester.dart View 4 chunks +8 lines, -4 lines 0 comments Download
M pkg/kernel/test/closures/suite.dart View 2 chunks +4 lines, -1 line 0 comments Download
M pkg/kernel/test/reify/suite.dart View 4 chunks +8 lines, -4 lines 0 comments Download
M pkg/kernel/test/treeshaker_bench.dart View 2 chunks +4 lines, -6 lines 0 comments Download
M pkg/kernel/test/treeshaker_check.dart View 2 chunks +3 lines, -1 line 0 comments Download
M pkg/kernel/test/treeshaker_dump.dart View 3 chunks +4 lines, -2 lines 0 comments Download
M pkg/kernel/test/treeshaker_membench.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/kernel/tool/dartk.dart View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
scheglov
3 years, 7 months ago (2017-05-26 18:35:43 UTC) #1
Paul Berry
https://codereview.chromium.org/2904203003/diff/1/pkg/front_end/test/fasta/kompile.status File pkg/front_end/test/fasta/kompile.status (right): https://codereview.chromium.org/2904203003/diff/1/pkg/front_end/test/fasta/kompile.status#newcode15 pkg/front_end/test/fasta/kompile.status:15: await: Crash Why do all these tests crash now? ...
3 years, 7 months ago (2017-05-26 19:04:55 UTC) #2
scheglov
PTAL https://codereview.chromium.org/2904203003/diff/1/pkg/front_end/test/fasta/kompile.status File pkg/front_end/test/fasta/kompile.status (right): https://codereview.chromium.org/2904203003/diff/1/pkg/front_end/test/fasta/kompile.status#newcode15 pkg/front_end/test/fasta/kompile.status:15: await: Crash On 2017/05/26 19:04:54, Paul Berry wrote: ...
3 years, 7 months ago (2017-05-26 19:17:58 UTC) #3
Paul Berry
lgtm assuming Kevin or Peter approves
3 years, 7 months ago (2017-05-26 19:20:17 UTC) #4
ahe
LGTM, provided all the comments below are addressed. https://codereview.chromium.org/2904203003/diff/20001/pkg/analyzer/lib/src/fasta/analyzer_loader.dart File pkg/analyzer/lib/src/fasta/analyzer_loader.dart (right): https://codereview.chromium.org/2904203003/diff/20001/pkg/analyzer/lib/src/fasta/analyzer_loader.dart#newcode37 pkg/analyzer/lib/src/fasta/analyzer_loader.dart:37: coreTypes ...
3 years, 6 months ago (2017-05-29 14:08:46 UTC) #5
scheglov
https://codereview.chromium.org/2904203003/diff/20001/pkg/analyzer/lib/src/fasta/analyzer_loader.dart File pkg/analyzer/lib/src/fasta/analyzer_loader.dart (right): https://codereview.chromium.org/2904203003/diff/20001/pkg/analyzer/lib/src/fasta/analyzer_loader.dart#newcode37 pkg/analyzer/lib/src/fasta/analyzer_loader.dart:37: coreTypes = new CoreTypes(program); On 2017/05/29 14:08:46, ahe wrote: ...
3 years, 6 months ago (2017-05-30 00:06:10 UTC) #6
ahe
https://codereview.chromium.org/2904203003/diff/20001/pkg/analyzer/lib/src/fasta/analyzer_loader.dart File pkg/analyzer/lib/src/fasta/analyzer_loader.dart (right): https://codereview.chromium.org/2904203003/diff/20001/pkg/analyzer/lib/src/fasta/analyzer_loader.dart#newcode37 pkg/analyzer/lib/src/fasta/analyzer_loader.dart:37: coreTypes = new CoreTypes(program); On 2017/05/30 00:06:10, scheglov wrote: ...
3 years, 6 months ago (2017-05-30 09:35:15 UTC) #7
scheglov
https://codereview.chromium.org/2904203003/diff/20001/pkg/analyzer/lib/src/fasta/analyzer_loader.dart File pkg/analyzer/lib/src/fasta/analyzer_loader.dart (right): https://codereview.chromium.org/2904203003/diff/20001/pkg/analyzer/lib/src/fasta/analyzer_loader.dart#newcode37 pkg/analyzer/lib/src/fasta/analyzer_loader.dart:37: coreTypes = new CoreTypes(program); On 2017/05/30 09:35:14, ahe wrote: ...
3 years, 6 months ago (2017-05-30 16:10:21 UTC) #8
ahe
https://codereview.chromium.org/2904203003/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart File pkg/front_end/lib/src/fasta/kernel/kernel_target.dart (right): https://codereview.chromium.org/2904203003/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart#newcode259 pkg/front_end/lib/src/fasta/kernel/kernel_target.dart:259: loader.computeHierarchy(_program); On 2017/05/30 16:10:21, scheglov wrote: > On 2017/05/30 ...
3 years, 6 months ago (2017-05-31 11:20:16 UTC) #9
scheglov
PTAL https://codereview.chromium.org/2904203003/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart File pkg/front_end/lib/src/fasta/kernel/kernel_target.dart (right): https://codereview.chromium.org/2904203003/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart#newcode259 pkg/front_end/lib/src/fasta/kernel/kernel_target.dart:259: loader.computeHierarchy(_program); On 2017/05/31 11:20:16, ahe wrote: > On ...
3 years, 6 months ago (2017-05-31 16:49:37 UTC) #10
scheglov
On 2017/05/31 16:49:37, scheglov wrote: > PTAL > > https://codereview.chromium.org/2904203003/diff/20001/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart > File pkg/front_end/lib/src/fasta/kernel/kernel_target.dart (right): > ...
3 years, 6 months ago (2017-05-31 16:50:23 UTC) #11
scheglov
Committed patchset #4 (id:60001) manually as 3803374d3216ce2b0e6694a96b3fb62cb0618d74 (presubmit successful).
3 years, 6 months ago (2017-05-31 16:54:34 UTC) #13
ahe
3 years, 6 months ago (2017-05-31 17:34:40 UTC) #14
Message was sent while issue was closed.
On 2017/05/31 16:50:23, scheglov wrote:
> Ah, actually I think I fixed all your comments.
> So, I will land it now.

Yes. Thank you!

Powered by Google App Engine
This is Rietveld 408576698