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

Issue 10778005: Add a limited version of ParameterMirrors that can only tell whether they are (Closed)

Created:
8 years, 5 months ago by rmacnak
Modified:
8 years, 5 months ago
Reviewers:
turnidge
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add a limited version of ParameterMirrors that can only tell whether they are optional. Add Dart_FunctionParameterCounts. Drop passing isSimpleValue to instance mirrors: they can compute this on the Dart-side. Committed: https://code.google.com/p/dart/source/detail?r=9683

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -37 lines) Patch
M lib/mirrors/mirrors.dart View 1 2 1 chunk +30 lines, -1 line 0 comments Download
M runtime/include/dart_api.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M runtime/lib/mirrors.cc View 1 2 3 chunks +50 lines, -3 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 4 chunks +18 lines, -3 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 4 chunks +54 lines, -30 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
rmacnak
8 years, 5 months ago (2012-07-13 22:37:39 UTC) #1
turnidge
https://chromiumcodereview.appspot.com/10778005/diff/1/lib/mirrors/mirrors.dart File lib/mirrors/mirrors.dart (right): https://chromiumcodereview.appspot.com/10778005/diff/1/lib/mirrors/mirrors.dart#newcode366 lib/mirrors/mirrors.dart:366: * A formal parameter. Make this comment look more ...
8 years, 5 months ago (2012-07-13 23:37:12 UTC) #2
rmacnak
Addressed comments. https://chromiumcodereview.appspot.com/10778005/diff/1/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://chromiumcodereview.appspot.com/10778005/diff/1/runtime/lib/mirrors.cc#newcode356 runtime/lib/mirrors.cc:356: }; I did that initially, but the ...
8 years, 5 months ago (2012-07-16 17:36:39 UTC) #3
turnidge
lgtm, with comments. Before submitting, be sure to build and test all/all. Todd https://chromiumcodereview.appspot.com/10778005/diff/8001/lib/mirrors/mirrors.dart File ...
8 years, 5 months ago (2012-07-16 18:30:26 UTC) #4
rmacnak
8 years, 5 months ago (2012-07-16 22:00:40 UTC) #5
https://chromiumcodereview.appspot.com/10778005/diff/8001/lib/mirrors/mirrors...
File lib/mirrors/mirrors.dart (right):

https://chromiumcodereview.appspot.com/10778005/diff/8001/lib/mirrors/mirrors...
lib/mirrors/mirrors.dart:368: interface ParameterMirror extends VariableMirror {
Okay. I decided to go with getters since its superclass VariableMirror uses
getters.

On 2012/07/16 18:30:26, turnidge wrote:
> On 2012/07/16 17:36:39, rmacnak wrote:
> > The members of this interface, copied from the "Reflection in Dart" doc, are
> all
> > methods. Perhaps they should be getters, as they should all be quick and
> > side-effect free?
> 
> You should probably do whatever *feels* consistent with the rest of this file
> (mirrors.dart) as it current stands.  We can go through and mass-change them
> later.

Powered by Google App Engine
This is Rietveld 408576698