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

Issue 3011793002: Add types referenced in is-checks to the class hierarchy (Closed)

Created:
3 years, 3 months ago by Harry Terkelsen
Modified:
3 years, 3 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : use a type visitor #

Total comments: 5

Patch Set 3 : use tearoff for isChecks.forEach #

Patch Set 4 : gcm #

Patch Set 5 : Add all resolved types in the program to the class hierarchy #

Total comments: 4

Patch Set 6 : add a todo about ResolutionDartTypeVisitor #

Patch Set 7 : update tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -42 lines) Patch
M pkg/compiler/lib/src/universe/resolution_world_builder.dart View 1 2 3 4 5 4 chunks +72 lines, -1 line 0 comments Download
M tests/corelib_2/corelib_2.status View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 6 11 chunks +10 lines, -35 lines 0 comments Download
M tests/language_2/language_2_dart2js.status View 1 2 3 4 5 6 4 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
Harry Terkelsen
3 years, 3 months ago (2017-08-31 22:43:38 UTC) #2
Siggi Cherem (dart-lang)
lgtm
3 years, 3 months ago (2017-08-31 23:33:54 UTC) #3
Johnni Winther
lgtm https://codereview.chromium.org/3011793002/diff/1/pkg/compiler/lib/src/universe/resolution_world_builder.dart File pkg/compiler/lib/src/universe/resolution_world_builder.dart (right): https://codereview.chromium.org/3011793002/diff/1/pkg/compiler/lib/src/universe/resolution_world_builder.dart#newcode947 pkg/compiler/lib/src/universe/resolution_world_builder.dart:947: void _registerType(DartType type) { We probably need to ...
3 years, 3 months ago (2017-09-01 08:21:35 UTC) #4
Harry Terkelsen
https://codereview.chromium.org/3011793002/diff/1/pkg/compiler/lib/src/universe/resolution_world_builder.dart File pkg/compiler/lib/src/universe/resolution_world_builder.dart (right): https://codereview.chromium.org/3011793002/diff/1/pkg/compiler/lib/src/universe/resolution_world_builder.dart#newcode947 pkg/compiler/lib/src/universe/resolution_world_builder.dart:947: void _registerType(DartType type) { On 2017/09/01 08:21:34, Johnni Winther ...
3 years, 3 months ago (2017-09-01 18:48:24 UTC) #5
Siggi Cherem (dart-lang)
https://codereview.chromium.org/3011793002/diff/20001/pkg/compiler/lib/src/universe/resolution_world_builder.dart File pkg/compiler/lib/src/universe/resolution_world_builder.dart (right): https://codereview.chromium.org/3011793002/diff/20001/pkg/compiler/lib/src/universe/resolution_world_builder.dart#newcode961 pkg/compiler/lib/src/universe/resolution_world_builder.dart:961: isChecks.forEach((t) { nit: isChecks.forEach(_classEnsurer.ensureClassesInType); https://codereview.chromium.org/3011793002/diff/20001/pkg/compiler/lib/src/universe/resolution_world_builder.dart#newcode964 pkg/compiler/lib/src/universe/resolution_world_builder.dart:964: closurizedMembers.forEach((function) { I'm ...
3 years, 3 months ago (2017-09-01 19:05:13 UTC) #6
Johnni Winther
https://codereview.chromium.org/3011793002/diff/20001/pkg/compiler/lib/src/universe/resolution_world_builder.dart File pkg/compiler/lib/src/universe/resolution_world_builder.dart (right): https://codereview.chromium.org/3011793002/diff/20001/pkg/compiler/lib/src/universe/resolution_world_builder.dart#newcode964 pkg/compiler/lib/src/universe/resolution_world_builder.dart:964: closurizedMembers.forEach((function) { On 2017/09/01 19:05:12, Siggi Cherem (dart-lang) wrote: ...
3 years, 3 months ago (2017-09-01 19:59:56 UTC) #7
Harry Terkelsen
https://codereview.chromium.org/3011793002/diff/20001/pkg/compiler/lib/src/universe/resolution_world_builder.dart File pkg/compiler/lib/src/universe/resolution_world_builder.dart (right): https://codereview.chromium.org/3011793002/diff/20001/pkg/compiler/lib/src/universe/resolution_world_builder.dart#newcode964 pkg/compiler/lib/src/universe/resolution_world_builder.dart:964: closurizedMembers.forEach((function) { On 2017/09/01 19:05:12, Siggi Cherem (dart-lang) wrote: ...
3 years, 3 months ago (2017-09-01 21:25:33 UTC) #8
Harry Terkelsen
https://codereview.chromium.org/3011793002/diff/20001/pkg/compiler/lib/src/universe/resolution_world_builder.dart File pkg/compiler/lib/src/universe/resolution_world_builder.dart (right): https://codereview.chromium.org/3011793002/diff/20001/pkg/compiler/lib/src/universe/resolution_world_builder.dart#newcode961 pkg/compiler/lib/src/universe/resolution_world_builder.dart:961: isChecks.forEach((t) { On 2017/09/01 19:05:12, Siggi Cherem (dart-lang) wrote: ...
3 years, 3 months ago (2017-09-01 21:48:57 UTC) #9
Siggi Cherem (dart-lang)
lgtm, thanks for the explanations
3 years, 3 months ago (2017-09-01 21:49:38 UTC) #10
Harry Terkelsen
Committed patchset #4 (id:60001) manually as c8d2478747cca24b3dc8f82cfda1b215b0fa370b (presubmit successful).
3 years, 3 months ago (2017-09-01 22:03:05 UTC) #12
Harry Terkelsen
PTAL, I had to revert to fix some tests
3 years, 3 months ago (2017-09-05 18:09:11 UTC) #13
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/3011793002/diff/80001/pkg/compiler/lib/src/universe/resolution_world_builder.dart File pkg/compiler/lib/src/universe/resolution_world_builder.dart (right): https://codereview.chromium.org/3011793002/diff/80001/pkg/compiler/lib/src/universe/resolution_world_builder.dart#newcode1055 pkg/compiler/lib/src/universe/resolution_world_builder.dart:1055: class _ClassEnsurer extends BaseResolutionDartTypeVisitor<dynamic, Null> { consider adding ...
3 years, 3 months ago (2017-09-05 18:20:33 UTC) #14
Harry Terkelsen
3 years, 3 months ago (2017-09-05 18:31:11 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/3011793002/diff/80001/pkg/compiler/lib/src/un...
File pkg/compiler/lib/src/universe/resolution_world_builder.dart (right):

https://codereview.chromium.org/3011793002/diff/80001/pkg/compiler/lib/src/un...
pkg/compiler/lib/src/universe/resolution_world_builder.dart:1055: class
_ClassEnsurer extends BaseResolutionDartTypeVisitor<dynamic, Null> {
On 2017/09/05 18:20:33, Siggi Cherem (dart-lang) wrote:
> consider adding a second TODO: to explain why you need "Resolution" here (to
> deal with MalformedTypes) and that we would like to switch to just use the
> regular visitor instead.
> 
> One way to do that might be to explicitly model malformed types in the entity
> model as well in the future

Done.

https://codereview.chromium.org/3011793002/diff/80001/pkg/compiler/lib/src/un...
pkg/compiler/lib/src/universe/resolution_world_builder.dart:1082: // 
visitGenericType(GenericType type, _) {
On 2017/09/05 18:20:33, Siggi Cherem (dart-lang) wrote:
> delete?

Done.

Powered by Google App Engine
This is Rietveld 408576698