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

Issue 2890933002: Use LibraryIndex in CoreTypes instead of extending it. (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

Use LibraryIndex in CoreTypes instead of extending it. A smaller step this time - change only clients, but keep implementation the same for now. Not all patched SDKs have all classes and procedures, so I have to make some them lazy. All of them could be done for consistency, but this might slightly affect performance for often used dart:core classes. Also it's a bit of mess now. Maybe group these classes into logical structures, coreTypes.core.list, coreTypes.async.future, coreTypes.async.futureMicrotask, etc. Something like it was before this change, but fixed types and names instead of more flexible (but in general slower) strings. R=ahe@google.com, kmillikin@google.com, paulberry@google.com, sigmund@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/77d4eb609b1df3e56e7792ea54bbc71e8eda04b3

Patch Set 1 #

Total comments: 3

Patch Set 2 : Merge. #

Patch Set 3 : Make everything lazy in CoreTypes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -83 lines) Patch
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 2 chunks +2 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart View 1 1 chunk +16 lines, -19 lines 0 comments Download
M pkg/front_end/test/fasta/type_inference/type_constraint_gatherer_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/kernel/lib/core_types.dart View 1 2 2 chunks +212 lines, -41 lines 0 comments Download
M pkg/kernel/lib/transformations/continuation.dart View 1 chunk +15 lines, -15 lines 0 comments Download
M pkg/kernel/lib/transformations/method_call.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/kernel/lib/transformations/mixin_full_resolution.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/kernel/lib/transformations/treeshaker.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
scheglov
3 years, 7 months ago (2017-05-17 20:43:51 UTC) #1
Paul Berry
https://codereview.chromium.org/2890933002/diff/1/pkg/kernel/lib/core_types.dart File pkg/kernel/lib/core_types.dart (right): https://codereview.chromium.org/2890933002/diff/1/pkg/kernel/lib/core_types.dart#newcode109 pkg/kernel/lib/core_types.dart:109: Procedure get asyncErrorWrapperHelperProcedure { Personally I would prefer to ...
3 years, 7 months ago (2017-05-17 20:55:19 UTC) #5
ahe
https://codereview.chromium.org/2890933002/diff/1/pkg/kernel/lib/core_types.dart File pkg/kernel/lib/core_types.dart (right): https://codereview.chromium.org/2890933002/diff/1/pkg/kernel/lib/core_types.dart#newcode40 pkg/kernel/lib/core_types.dart:40: Library coreLibrary; Please restore the original order.
3 years, 7 months ago (2017-05-22 09:30:03 UTC) #6
scheglov
https://codereview.chromium.org/2890933002/diff/1/pkg/kernel/lib/core_types.dart File pkg/kernel/lib/core_types.dart (right): https://codereview.chromium.org/2890933002/diff/1/pkg/kernel/lib/core_types.dart#newcode40 pkg/kernel/lib/core_types.dart:40: Library coreLibrary; On 2017/05/22 09:30:02, ahe wrote: > Please ...
3 years, 7 months ago (2017-05-22 19:04:00 UTC) #7
scheglov
PTAL
3 years, 7 months ago (2017-05-22 20:00:00 UTC) #8
Paul Berry
lgtm, but I think we should wait for approval from Peter, Kevin, or Siggi before ...
3 years, 7 months ago (2017-05-22 20:05:13 UTC) #9
Siggi Cherem (dart-lang)
lgtm!
3 years, 7 months ago (2017-05-23 16:00:35 UTC) #10
scheglov
3 years, 7 months ago (2017-05-23 16:30:44 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
77d4eb609b1df3e56e7792ea54bbc71e8eda04b3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698