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

Issue 16101007: Implement LibraryMirror.metadata. (Closed)

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

Description

Patch Set 1 : #

Total comments: 11

Patch Set 2 : Address review comments #

Patch Set 3 : Fix issues found during testing. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -10 lines) Patch
M dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 6 chunks +16 lines, -3 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart View 1 2 1 chunk +9 lines, -0 lines 2 comments Download
M dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 2 5 chunks +25 lines, -2 lines 4 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart View 1 3 chunks +13 lines, -2 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 chunk +6 lines, -2 lines 0 comments Download
M dart/sdk/lib/mirrors/mirrors.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M dart/tests/lib/lib.status View 1 chunk +1 line, -0 lines 0 comments Download
A dart/tests/lib/mirrors/metadata_test.dart View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ahe
7 years, 6 months ago (2013-05-28 17:40:21 UTC) #1
kasperl
LGTM! https://codereview.chromium.org/16101007/diff/2001/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/16101007/diff/2001/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode2943 dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:2943: jsAst.Fun buildMetadataFunction(Element element) { Add a comment that ...
7 years, 6 months ago (2013-05-29 06:25:06 UTC) #2
ahe
Thank you, Kasper! https://codereview.chromium.org/16101007/diff/2001/dart/tests/lib/mirrors/metadata_test.dart File dart/tests/lib/mirrors/metadata_test.dart (right): https://codereview.chromium.org/16101007/diff/2001/dart/tests/lib/mirrors/metadata_test.dart#newcode17 dart/tests/lib/mirrors/metadata_test.dart:17: mirrors.findLibrary(const Symbol('test.metadata_test')).first; On 2013/05/29 06:25:06, kasperl ...
7 years, 6 months ago (2013-05-29 06:40:28 UTC) #3
ahe
https://codereview.chromium.org/16101007/diff/2001/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (right): https://codereview.chromium.org/16101007/diff/2001/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#newcode2943 dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:2943: jsAst.Fun buildMetadataFunction(Element element) { On 2013/05/29 06:25:06, kasperl wrote: ...
7 years, 6 months ago (2013-05-30 11:41:15 UTC) #4
ahe
I found some issues during testing. I'll commit the CL now, but please take another ...
7 years, 6 months ago (2013-05-30 13:05:28 UTC) #5
ahe
Committed patchset #3 manually as r23406 (presubmit successful).
7 years, 6 months ago (2013-05-30 13:06:34 UTC) #6
kasperl
Still LGTM! https://codereview.chromium.org/16101007/diff/14002/dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart File dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart (right): https://codereview.chromium.org/16101007/diff/14002/dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart#newcode602 dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart:602: // The metadata is stored on the ...
7 years, 6 months ago (2013-05-30 13:16:39 UTC) #7
ahe
7 years, 6 months ago (2013-05-30 13:28:45 UTC) #8
Message was sent while issue was closed.
Thank you, Kasper.   I'll address the last round of comments in another CL.

https://codereview.chromium.org/16101007/diff/14002/dart/sdk/lib/_internal/co...
File dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
(right):

https://codereview.chromium.org/16101007/diff/14002/dart/sdk/lib/_internal/co...
dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart:602: // The
metadata is stored on the library name.
On 2013/05/30 13:16:39, kasperl wrote:
> name -> tag?

Done.

https://codereview.chromium.org/16101007/diff/14002/dart/sdk/lib/_internal/co...
File dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
(right):

https://codereview.chromium.org/16101007/diff/14002/dart/sdk/lib/_internal/co...
dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:2950: if
(compiler.mirrorSystemClass == null) return new jsAst.LiteralString('');
On 2013/05/30 13:16:39, kasperl wrote:
> Add comment.

Done.

https://codereview.chromium.org/16101007/diff/14002/dart/sdk/lib/_internal/co...
dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:2953: //
TODO(ahe): Why is metadata sometimes null?
On 2013/05/30 13:16:39, kasperl wrote:
> Maybe move this check out of the loop so it sticks out?

Done.

Powered by Google App Engine
This is Rietveld 408576698