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

Issue 10832136: Skeleton typedef type implementation (Closed)

Created:
8 years, 4 months ago by Johnni Winther
Modified:
8 years, 4 months ago
Reviewers:
ahe, ngeoffray
CC:
reviews_dartlang.org, karlklose, ngeoffray, Roman, Anton Muhin
Visibility:
Public.

Description

Skeleton typedef type implementation Committed: https://code.google.com/p/dart/source/detail?r=10880

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Backend updated #

Total comments: 25

Patch Set 4 : Rebased and updated cf. comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -54 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M lib/compiler/implementation/elements/elements.dart View 1 2 3 3 chunks +24 lines, -8 lines 0 comments Download
M lib/compiler/implementation/js_backend/native_emitter.dart View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M lib/compiler/implementation/native_handler.dart View 1 2 3 2 chunks +9 lines, -3 lines 0 comments Download
M lib/compiler/implementation/resolver.dart View 1 2 3 3 chunks +46 lines, -5 lines 0 comments Download
M lib/compiler/implementation/typechecker.dart View 1 2 3 8 chunks +72 lines, -12 lines 0 comments Download
M pkg/dartdoc/mirrors/dart2js_mirror.dart View 1 2 3 4 chunks +14 lines, -14 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M tests/html/html.status View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Johnni Winther
8 years, 4 months ago (2012-08-03 15:47:37 UTC) #1
ahe
lgtm
8 years, 4 months ago (2012-08-03 15:48:12 UTC) #2
Johnni Winther
PTAL
8 years, 4 months ago (2012-08-14 13:25:31 UTC) #3
ngeoffray
DBC https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/resolver.dart#newcode1814 lib/compiler/implementation/resolver.dart:1814: visitClassNode(ClassNode node) { Why this change? https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/typechecker.dart File ...
8 years, 4 months ago (2012-08-16 12:45:44 UTC) #4
ahe
LGTM, you can do the ensureResolved change in the next CL. https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): ...
8 years, 4 months ago (2012-08-16 13:22:58 UTC) #5
Johnni Winther
https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/elements/elements.dart#newcode482 lib/compiler/implementation/elements/elements.dart:482: bool isResolved = false; On 2012/08/16 13:22:58, ahe wrote: ...
8 years, 4 months ago (2012-08-17 11:15:19 UTC) #6
Johnni Winther
8 years, 4 months ago (2012-08-17 11:21:30 UTC) #7
ahe
FYI https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/elements/elements.dart#newcode494 lib/compiler/implementation/elements/elements.dart:494: * resolved. On 2012/08/17 11:15:19, Johnni Winther wrote: ...
8 years, 4 months ago (2012-08-21 14:27:24 UTC) #8
ahe
https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/typechecker.dart File lib/compiler/implementation/typechecker.dart (right): https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/typechecker.dart#newcode41 lib/compiler/implementation/typechecker.dart:41: Type unalias(Compiler compiler); On 2012/08/17 11:15:19, Johnni Winther wrote: ...
8 years, 4 months ago (2012-08-21 14:28:38 UTC) #9
Johnni Winther
https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/typechecker.dart File lib/compiler/implementation/typechecker.dart (right): https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implementation/typechecker.dart#newcode41 lib/compiler/implementation/typechecker.dart:41: Type unalias(Compiler compiler); On 2012/08/21 14:28:39, ahe wrote: > ...
8 years, 4 months ago (2012-08-22 07:47:58 UTC) #10
ahe
8 years, 4 months ago (2012-08-22 07:50:19 UTC) #11
https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implem...
File lib/compiler/implementation/typechecker.dart (right):

https://chromiumcodereview.appspot.com/10832136/diff/7002/lib/compiler/implem...
lib/compiler/implementation/typechecker.dart:41: Type unalias(Compiler
compiler);
On 2012/08/22 07:47:58, Johnni Winther wrote:
> On 2012/08/21 14:28:39, ahe wrote:
> > On 2012/08/17 11:15:19, Johnni Winther wrote:
> > > On 2012/08/16 13:22:58, ahe wrote:
> > > > On 2012/08/16 12:45:44, ngeoffray wrote:
> > > > > Why having an 'unalias' function and not a isFunction method? I think
> > you're
> > > > > commenting at each call site why you're calling 'unalias', and a
> predicate
> > > > > method would actually be clearer.
> > > > 
> > > > I was thinking the same.
> > > > 
> > > > Clearly, unalias is the general operation we need, but a convenient
> > predicate
> > > > would make the code easier to read.
> > > 
> > > The convenience method would have to have the signature `bool
> isFunct(Compiler
> > > compiler)` in order to compute the alias, and it doesn't seem so
convenient.
> > 
> > You can answer the question "is function?" without computing the alias.
> 
> No. That is why we need Compiler.

You don't need the compiler because the only TypedefElement you have is a
function type.

Powered by Google App Engine
This is Rietveld 408576698