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

Issue 10825431: More mirrors changes to bring vm mirrors more in line with the (Closed)

Created:
8 years, 4 months ago by turnidge
Modified:
8 years, 4 months ago
Reviewers:
cshapiro
CC:
reviews_dartlang.org, gbracha, Johnni Winther
Visibility:
Public.

Description

More mirrors changes to bring vm mirrors more in line with the current proposed mirrors api. Committed: https://code.google.com/p/dart/source/detail?r=11095

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -154 lines) Patch
M lib/mirrors/mirrors.dart View 1 2 3 4 5 8 chunks +244 lines, -92 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 3 14 chunks +222 lines, -58 lines 0 comments Download
M runtime/tests/vm/dart/isolate_mirror_local_test.dart View 9 chunks +35 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
turnidge
8 years, 4 months ago (2012-08-18 00:16:24 UTC) #1
cshapiro
Not sure where things are at. Presumably we will discuss some of the naming issues ...
8 years, 4 months ago (2012-08-21 03:16:04 UTC) #2
turnidge
8 years, 4 months ago (2012-08-21 18:00:48 UTC) #3
http://codereview.chromium.org/10825431/diff/2002/lib/mirrors/mirrors.dart
File lib/mirrors/mirrors.dart (right):

http://codereview.chromium.org/10825431/diff/2002/lib/mirrors/mirrors.dart#ne...
lib/mirrors/mirrors.dart:325: * An immutable map from names to mirrors for all
setter
On 2012/08/21 03:16:05, cshapiro wrote:
> could call this (and above) mapping to get rid of implementation details your
> call.

Since the type is listed below, I'm not sure if the distinction between map and
mapping is important to me here.

http://codereview.chromium.org/10825431/diff/2002/lib/mirrors/mirrors.dart#ne...
lib/mirrors/mirrors.dart:415: final bool isUnboundType;
On 2012/08/21 03:16:05, cshapiro wrote:
> isGenericDeclaration
> 
> or
> 
> isDefinition

Choosing isGenericDeclaration for now.

http://codereview.chromium.org/10825431/diff/2002/lib/mirrors/mirrors.dart#ne...
lib/mirrors/mirrors.dart:425: final ClassMirror unboundType;
On 2012/08/21 03:16:05, cshapiro wrote:
> The verbiage in the comments seems better than the variable name.  We have
> talked about
> 
> genericDeclaration
> 
> and
> 
> definition
> 
> for this particular member.

I'm changing it to genericDeclaration for now.

http://codereview.chromium.org/10825431/diff/2002/lib/mirrors/mirrors.dart#ne...
lib/mirrors/mirrors.dart:459: * The bound of the reflectee.
On 2012/08/21 03:16:05, cshapiro wrote:
> I am not sure what this means from the comment.  It seems ambiguous.

Changed to upperBound and improved comment.

http://codereview.chromium.org/10825431/diff/2002/runtime/lib/mirrors_impl.dart
File runtime/lib/mirrors_impl.dart (right):

http://codereview.chromium.org/10825431/diff/2002/runtime/lib/mirrors_impl.da...
runtime/lib/mirrors_impl.dart:505: String get qualifiedName() {
On 2012/08/21 03:16:05, cshapiro wrote:
>   // The simple name and the qualified name are the same for a library.
>   String get qualifiedName() => simpleName;
> 
> For consistency with the other accessors?

Switched all short functions (that can fit on one line) to use the => format in
the file.

http://codereview.chromium.org/10825431/diff/2002/runtime/lib/mirrors_impl.da...
runtime/lib/mirrors_impl.dart:731: // TODO(rmacnak): Fill these mirrors will
real information
On 2012/08/21 03:16:05, cshapiro wrote:
> Still relevant?  Should this be a TODO(turnidge)?

Will change these unimplemented accessors to throw NotImplemented and drop the
todo.

Powered by Google App Engine
This is Rietveld 408576698