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

Issue 12093019: Support type variables on redirecting factory constructors. (Closed)

Created:
7 years, 10 months ago by karlklose
Modified:
7 years, 6 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support type variables on redirecting factory constructors. R=ngeoffray@google.com Committed: https://code.google.com/p/dart/source/detail?r=23407

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Address comments. #

Patch Set 5 : Forgot one. #

Patch Set 6 : Move part of the substitution to the resolver and function type checks. #

Patch Set 7 : Fix checked mode. #

Patch Set 8 : #

Total comments: 8

Patch Set 9 : Address comments. #

Total comments: 6

Patch Set 10 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -25 lines) Patch
M sdk/lib/_internal/compiler/implementation/elements/elements.dart View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/modelx.dart View 1 2 3 4 5 6 7 8 9 3 chunks +35 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 3 4 5 6 7 8 3 chunks +31 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 3 4 5 6 7 8 9 3 chunks +27 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/tree/nodes.dart View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 6 7 5 chunks +4 lines, -19 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
karlklose
7 years, 10 months ago (2013-01-29 09:25:21 UTC) #1
ahe
DBC https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart File sdk/lib/_internal/compiler/implementation/ssa/builder.dart (right): https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart#newcode3236 sdk/lib/_internal/compiler/implementation/ssa/builder.dart:3236: // factory constructors. This should be done by ...
7 years, 10 months ago (2013-01-29 09:30:58 UTC) #2
ngeoffray
https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart File sdk/lib/_internal/compiler/implementation/ssa/builder.dart (right): https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart#newcode3236 sdk/lib/_internal/compiler/implementation/ssa/builder.dart:3236: // factory constructors. On 2013/01/29 09:30:58, ahe wrote: > ...
7 years, 10 months ago (2013-01-29 09:37:22 UTC) #3
ngeoffray
https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart File sdk/lib/_internal/compiler/implementation/ssa/builder.dart (left): https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart#oldcode3235 sdk/lib/_internal/compiler/implementation/ssa/builder.dart:3235: constructor = functionElement.redirectionTarget; @Peter: Why are we changing constructor ...
7 years, 10 months ago (2013-01-29 10:23:35 UTC) #4
ahe
https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart File sdk/lib/_internal/compiler/implementation/ssa/builder.dart (left): https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart#oldcode3235 sdk/lib/_internal/compiler/implementation/ssa/builder.dart:3235: constructor = functionElement.redirectionTarget; On 2013/01/29 10:23:35, ngeoffray wrote: > ...
7 years, 10 months ago (2013-01-29 10:57:48 UTC) #5
ngeoffray
https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart File sdk/lib/_internal/compiler/implementation/ssa/builder.dart (left): https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart#oldcode3235 sdk/lib/_internal/compiler/implementation/ssa/builder.dart:3235: constructor = functionElement.redirectionTarget; On 2013/01/29 10:57:48, ahe wrote: > ...
7 years, 10 months ago (2013-01-29 11:03:19 UTC) #6
karlklose
https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart File sdk/lib/_internal/compiler/implementation/ssa/builder.dart (right): https://codereview.chromium.org/12093019/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart#newcode3236 sdk/lib/_internal/compiler/implementation/ssa/builder.dart:3236: // factory constructors. Why do you think this belongs ...
7 years, 10 months ago (2013-01-29 12:37:00 UTC) #7
karlklose
Ping.
7 years, 10 months ago (2013-02-01 07:37:44 UTC) #8
karlklose
Ping.
7 years, 10 months ago (2013-02-09 07:12:36 UTC) #9
ngeoffray
LGTM https://codereview.chromium.org/12093019/diff/9001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart File sdk/lib/_internal/compiler/implementation/ssa/builder.dart (right): https://codereview.chromium.org/12093019/diff/9001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart#newcode3235 sdk/lib/_internal/compiler/implementation/ssa/builder.dart:3235: // Compute the right target and type for ...
7 years, 10 months ago (2013-02-18 09:44:28 UTC) #10
karlklose
Thanks for the comments. https://codereview.chromium.org/12093019/diff/9001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart File sdk/lib/_internal/compiler/implementation/ssa/builder.dart (right): https://codereview.chromium.org/12093019/diff/9001/sdk/lib/_internal/compiler/implementation/ssa/builder.dart#newcode3235 sdk/lib/_internal/compiler/implementation/ssa/builder.dart:3235: // Compute the right target ...
7 years, 10 months ago (2013-02-19 13:20:27 UTC) #11
karlklose
PTAL, I have rewritten the CL.
7 years, 6 months ago (2013-05-29 13:53:48 UTC) #12
ngeoffray
LGTM https://codereview.chromium.org/12093019/diff/23005/sdk/lib/_internal/compiler/implementation/resolution/members.dart File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/12093019/diff/23005/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode2504 sdk/lib/_internal/compiler/implementation/resolution/members.dart:2504: compiler.backend.registerThrowNoSuchMethod(mapping); Do you really need to make it ...
7 years, 6 months ago (2013-05-30 08:23:14 UTC) #13
karlklose
Thanks for the review, Nicolas! https://codereview.chromium.org/12093019/diff/23005/sdk/lib/_internal/compiler/implementation/resolution/members.dart File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/12093019/diff/23005/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode2504 sdk/lib/_internal/compiler/implementation/resolution/members.dart:2504: compiler.backend.registerThrowNoSuchMethod(mapping); The test is ...
7 years, 6 months ago (2013-05-30 11:44:23 UTC) #14
ngeoffray
LGTM! https://codereview.chromium.org/12093019/diff/39001/sdk/lib/_internal/compiler/implementation/elements/elements.dart File sdk/lib/_internal/compiler/implementation/elements/elements.dart (right): https://codereview.chromium.org/12093019/diff/39001/sdk/lib/_internal/compiler/implementation/elements/elements.dart#newcode738 sdk/lib/_internal/compiler/implementation/elements/elements.dart:738: bool get isRedirection; isRedirection -> isRedirectingFactory ? https://codereview.chromium.org/12093019/diff/39001/sdk/lib/_internal/compiler/implementation/elements/modelx.dart ...
7 years, 6 months ago (2013-05-30 11:57:22 UTC) #15
karlklose
https://codereview.chromium.org/12093019/diff/39001/sdk/lib/_internal/compiler/implementation/elements/elements.dart File sdk/lib/_internal/compiler/implementation/elements/elements.dart (right): https://codereview.chromium.org/12093019/diff/39001/sdk/lib/_internal/compiler/implementation/elements/elements.dart#newcode738 sdk/lib/_internal/compiler/implementation/elements/elements.dart:738: bool get isRedirection; On 2013/05/30 11:57:23, ngeoffray wrote: > ...
7 years, 6 months ago (2013-05-30 12:24:41 UTC) #16
karlklose
7 years, 6 months ago (2013-05-30 13:14:52 UTC) #17
Message was sent while issue was closed.
Committed patchset #10 manually as r23407 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698