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

Issue 23872010: Add metadata for type parameters (TypeVariableMirror). (Closed)

Created:
7 years, 3 months ago by Michael Lippautz (Google)
Modified:
7 years, 3 months ago
Reviewers:
rmacnak, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add metadata to type parameters. Reflective access is provided by TypeVariableMirror. Addresses issue 10906. BUG=https://code.google.com/p/dart/issues/detail?id=10906 R=asiva@google.com, rmacnak@google.com Committed: https://code.google.com/p/dart/source/detail?r=27523

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : addressed comments #

Patch Set 5 : rebase + TODOs #

Total comments: 4

Patch Set 6 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -11 lines) Patch
M runtime/lib/mirrors.cc View 1 2 3 4 5 2 chunks +13 lines, -3 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 4 chunks +27 lines, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M tests/lib/lib.status View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A tests/lib/mirrors/typevariable_mirror_metadata_test.dart View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Michael Lippautz (Google)
As far as I see, this is the last metadata piece missing. Implementation is similar ...
7 years, 3 months ago (2013-09-12 17:51:20 UTC) #1
rmacnak
https://chromiumcodereview.appspot.com/23872010/diff/5001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/23872010/diff/5001/runtime/vm/object.cc#newcode6554 runtime/vm/object.cc:6554: return String::Concat(cname, pname); We can have a type parameter ...
7 years, 3 months ago (2013-09-13 01:13:28 UTC) #2
Michael Lippautz (Google)
Thanks! I also added tests checking for metadata when name conflicts occur. https://chromiumcodereview.appspot.com/23872010/diff/5001/runtime/vm/object.cc File runtime/vm/object.cc ...
7 years, 3 months ago (2013-09-13 01:42:17 UTC) #3
Michael Lippautz (Google)
PTAL As name conflicts will become some sort of error again, I added TODOs to ...
7 years, 3 months ago (2013-09-13 17:25:05 UTC) #4
siva
lgtm https://chromiumcodereview.appspot.com/23872010/diff/17001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/23872010/diff/17001/runtime/vm/object.cc#newcode6557 runtime/vm/object.cc:6557: return String::Concat(cname, pname); Why not create an array ...
7 years, 3 months ago (2013-09-14 00:58:40 UTC) #5
Michael Lippautz (Google)
https://chromiumcodereview.appspot.com/23872010/diff/17001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/23872010/diff/17001/runtime/vm/object.cc#newcode6557 runtime/vm/object.cc:6557: return String::Concat(cname, pname); On 2013/09/14 00:58:41, siva wrote: > ...
7 years, 3 months ago (2013-09-16 16:44:35 UTC) #6
rmacnak
lgtm
7 years, 3 months ago (2013-09-16 16:51:10 UTC) #7
Michael Lippautz (Google)
7 years, 3 months ago (2013-09-16 16:53:31 UTC) #8
Message was sent while issue was closed.
Committed patchset #6 manually as r27523 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698