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

Issue 13467021: Register type for literal list/map. (Closed)

Created:
7 years, 8 months ago by Johnni Winther
Modified:
7 years, 8 months ago
Reviewers:
karlklose, ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Register type for literal list/map. BUG= Committed: https://code.google.com/p/dart/source/detail?r=21136

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -13 lines) Patch
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 chunk +4 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_types.dart View 3 chunks +6 lines, -5 lines 2 comments Download
M sdk/lib/_internal/compiler/implementation/elements/elements.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/modelx.dart View 2 chunks +10 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 2 chunks +32 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/cpa_inference_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Johnni Winther
7 years, 8 months ago (2013-04-08 13:48:55 UTC) #1
karlklose
LGTM.
7 years, 8 months ago (2013-04-08 14:00:37 UTC) #2
Johnni Winther
Committed patchset #1 manually as r21136 (presubmit successful).
7 years, 8 months ago (2013-04-09 08:06:14 UTC) #3
ngeoffray
What is the net result of this change? Do we know have the right runtime ...
7 years, 8 months ago (2013-04-10 11:35:51 UTC) #4
Johnni Winther
On 2013/04/10 11:35:51, ngeoffray wrote: > What is the net result of this change? Do ...
7 years, 8 months ago (2013-04-10 11:43:21 UTC) #5
Johnni Winther
https://codereview.chromium.org/13467021/diff/1/sdk/lib/_internal/compiler/implementation/dart_types.dart File sdk/lib/_internal/compiler/implementation/dart_types.dart (right): https://codereview.chromium.org/13467021/diff/1/sdk/lib/_internal/compiler/implementation/dart_types.dart#newcode455 sdk/lib/_internal/compiler/implementation/dart_types.dart:455: message: () => 'Invalid type argument count on ${element.thisType}. ...
7 years, 8 months ago (2013-04-10 11:43:27 UTC) #6
ngeoffray
On 2013/04/10 11:43:21, Johnni Winther wrote: > On 2013/04/10 11:35:51, ngeoffray wrote: > > What ...
7 years, 8 months ago (2013-04-10 11:49:47 UTC) #7
Johnni Winther
7 years, 8 months ago (2013-04-10 13:16:38 UTC) #8
Message was sent while issue was closed.
On 2013/04/10 11:49:47, ngeoffray wrote:
> On 2013/04/10 11:43:21, Johnni Winther wrote:
> > On 2013/04/10 11:35:51, ngeoffray wrote:
> > > What is the net result of this change? Do we know have the right runtime
> type
> > > for the literal lists and maps? If yes, shouldn't we have tests that pass
> now?
> > > 
> > >
> >
>
https://codereview.chromium.org/13467021/diff/1/sdk/lib/_internal/compiler/im...
> > > File sdk/lib/_internal/compiler/implementation/dart_types.dart (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/13467021/diff/1/sdk/lib/_internal/compiler/im...
> > > sdk/lib/_internal/compiler/implementation/dart_types.dart:455: message: ()
> =>
> > > 'Invalid type argument count on ${element.thisType}. '
> > > Why this change?
> > 
> > The change is made in preparation for typechecking. The missing computation
of
> > the raw type of a map was revealed during this. Pulling the a [null] as the
> raw
> > type is silently handled by the registration code, so it currently causes no
> > error.
> 
> OK. Looking at builder.dart, it looks like we're not using the type variables
> for list and map literals for codegen. So this change should help implement
that
> too, right?

Yes. The type (with the correct type arguments) should now be in
elements.getType(node).

Powered by Google App Engine
This is Rietveld 408576698