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

Issue 78873007: Support type argument substitution on unnamed mixin applications. (Closed)

Created:
7 years, 1 month ago by zarah
Modified:
7 years ago
CC:
reviews_dartlang.org, karlklose
Visibility:
Public.

Description

Support type argument substitution on unnamed mixin applications. R=ahe@google.com, johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=31319

Patch Set 1 : #

Total comments: 17

Patch Set 2 : Changed to use the synthetic type variables added in the element model. #

Total comments: 6

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -70 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart View 1 2 chunks +8 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M sdk/lib/_internal/lib/js_mirrors.dart View 1 2 33 chunks +193 lines, -59 lines 0 comments Download
M tests/lib/lib.status View 1 2 chunks +3 lines, -5 lines 0 comments Download
A tests/lib/mirrors/generic_mixin_type_variable_test.dart View 1 1 chunk +168 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
zarah
7 years, 1 month ago (2013-11-21 12:49:10 UTC) #1
ahe
https://codereview.chromium.org/78873007/diff/20001/sdk/lib/_internal/lib/js_mirrors.dart File sdk/lib/_internal/lib/js_mirrors.dart (right): https://codereview.chromium.org/78873007/diff/20001/sdk/lib/_internal/lib/js_mirrors.dart#newcode481 sdk/lib/_internal/lib/js_mirrors.dart:481: {ClassMirror context}) { I'm not sure about this. Let's ...
7 years, 1 month ago (2013-11-21 15:15:33 UTC) #2
Johnni Winther
lgtm https://codereview.chromium.org/78873007/diff/20001/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart File sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart (right): https://codereview.chromium.org/78873007/diff/20001/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart#newcode65 sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart:65: */""}mangledGlobalNames[previousProperty] = property.substring(1); Indent to align `mangledGlobalNames...` under ...
7 years ago (2013-11-25 07:19:20 UTC) #3
zarah
PTAL https://codereview.chromium.org/78873007/diff/20001/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart File sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart (right): https://codereview.chromium.org/78873007/diff/20001/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart#newcode65 sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart:65: */""}mangledGlobalNames[previousProperty] = property.substring(1); On 2013/11/25 07:19:20, Johnni Winther ...
7 years ago (2013-12-19 10:53:33 UTC) #4
ahe
LGTM! https://codereview.chromium.org/78873007/diff/90001/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart File sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart (right): https://codereview.chromium.org/78873007/diff/90001/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart#newcode187 sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart:187: */""} mangledGlobalNames[previousProperty] = property.substring(1); Restore the other version, ...
7 years ago (2013-12-19 11:57:06 UTC) #5
zarah
Committed patchset #3 manually as r31319 (presubmit successful).
7 years ago (2013-12-20 07:32:39 UTC) #6
zarah
7 years ago (2013-12-20 13:17:21 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/78873007/diff/90001/sdk/lib/_internal/compile...
File
sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart
(right):

https://codereview.chromium.org/78873007/diff/90001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart:187:
*/""}          mangledGlobalNames[previousProperty] = property.substring(1);
On 2013/12/19 11:57:06, ahe wrote:
> Restore the other version, Johnni prefers it that way.

Done.

https://codereview.chromium.org/78873007/diff/90001/sdk/lib/_internal/lib/js_...
File sdk/lib/_internal/lib/js_mirrors.dart (right):

https://codereview.chromium.org/78873007/diff/90001/sdk/lib/_internal/lib/js_...
sdk/lib/_internal/lib/js_mirrors.dart:156: Symbol get simpleName;
On 2013/12/19 11:57:06, ahe wrote:
> Remove all public methods. They are redundant.

Done.

https://codereview.chromium.org/78873007/diff/90001/sdk/lib/_internal/lib/js_...
sdk/lib/_internal/lib/js_mirrors.dart:586:
reflectClassByMangledName(mangledName.substring(0,
typeArgIndex)).originalDeclaration,
On 2013/12/19 11:57:06, ahe wrote:
> Long line.

Done.

Powered by Google App Engine
This is Rietveld 408576698