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

Issue 22791002: Add renames in output when using the mirror helper library. (Closed)

Created:
7 years, 4 months ago by zarah
Modified:
7 years, 3 months ago
Reviewers:
Johnni Winther, ahe
CC:
reviews_dartlang.org, Johnni Winther
Visibility:
Public.

Description

Add renames in output when using the mirror helper library. R=johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=26623

Patch Set 1 #

Total comments: 7

Patch Set 2 : Changed solution approach. #

Total comments: 52

Patch Set 3 : Addressed review comments and fixed some latent bugs in other parts of the code. #

Total comments: 22

Patch Set 4 : Addressed review comments + small fixes. #

Total comments: 2

Patch Set 5 : Added an assert. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -93 lines) Patch
M sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart View 1 2 3 5 chunks +55 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/dart_backend.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart View 1 2 3 5 chunks +8 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirror_renamer/mirror_renamer.dart View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart View 1 2 3 4 1 chunk +80 lines, -21 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors_used.dart View 1 1 chunk +5 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/listener.dart View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/parser.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/parser_task.dart View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/scanner_task.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
A sdk/lib/_internal/lib/mirror_helper.dart View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M sdk/lib/_internal/libraries.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/dart_backend_test.dart View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A tests/compiler/dart2js/mirror_helper_rename_test.dart View 1 2 3 1 chunk +106 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/mirror_helper_test.dart View 1 2 3 3 chunks +14 lines, -50 lines 0 comments Download
M tests/compiler/dart2js/mirror_helper_unique_minification_test.dart View 1 2 3 4 chunks +23 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M tests/utils/dummy_compiler_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
zarah
7 years, 4 months ago (2013-08-12 08:39:23 UTC) #1
ahe
https://codereview.chromium.org/22791002/diff/1/sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart (right): https://codereview.chromium.org/22791002/diff/1/sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart#newcode16 sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart:16: Extra line. https://codereview.chromium.org/22791002/diff/1/sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart#newcode17 sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart:17: bool isTopLevelMain(Node node) => In ...
7 years, 4 months ago (2013-08-12 15:43:21 UTC) #2
zarah
PTAL
7 years, 4 months ago (2013-08-19 13:42:51 UTC) #3
ahe
https://codereview.chromium.org/22791002/diff/7001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): https://codereview.chromium.org/22791002/diff/7001/sdk/lib/_internal/compiler/implementation/compiler.dart#newcode397 sdk/lib/_internal/compiler/implementation/compiler.dart:397: LibraryElement mirrorHelperLibrary; Could you move this to the backend? ...
7 years, 4 months ago (2013-08-19 15:34:06 UTC) #4
zarah
PTAL https://codereview.chromium.org/22791002/diff/7001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): https://codereview.chromium.org/22791002/diff/7001/sdk/lib/_internal/compiler/implementation/compiler.dart#newcode397 sdk/lib/_internal/compiler/implementation/compiler.dart:397: LibraryElement mirrorHelperLibrary; On 2013/08/19 15:34:06, ahe wrote: > ...
7 years, 4 months ago (2013-08-20 14:08:17 UTC) #5
Johnni Winther
https://codereview.chromium.org/22791002/diff/17001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart File sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart (right): https://codereview.chromium.org/22791002/diff/17001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart#newcode277 sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart:277: if (useMirrorHelperLibrary && compiler.mirrorsLibrary != null) { Logical bug ...
7 years, 4 months ago (2013-08-23 09:25:19 UTC) #6
zarah
PTAL https://codereview.chromium.org/22791002/diff/17001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart File sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart (right): https://codereview.chromium.org/22791002/diff/17001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart#newcode277 sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart:277: if (useMirrorHelperLibrary && compiler.mirrorsLibrary != null) { On ...
7 years, 4 months ago (2013-08-23 16:16:36 UTC) #7
Johnni Winther
lgtm https://codereview.chromium.org/22791002/diff/27001/sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart File sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart (right): https://codereview.chromium.org/22791002/diff/27001/sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart#newcode66 sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart:66: Identifier symbolsMapIdentifier = Assert that [symbolsMapIdentifer] is not ...
7 years, 3 months ago (2013-08-26 07:38:27 UTC) #8
zarah
Committed patchset #5 manually as r26623 (presubmit successful).
7 years, 3 months ago (2013-08-26 08:21:52 UTC) #9
zarah
7 years, 3 months ago (2013-08-28 10:19:03 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/22791002/diff/27001/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart
(right):

https://codereview.chromium.org/22791002/diff/27001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/mirror_renamer/renamer.dart:66:
Identifier symbolsMapIdentifier =
On 2013/08/26 07:38:27, Johnni Winther wrote:
> Assert that [symbolsMapIdentifer] is not null.

Done.

Powered by Google App Engine
This is Rietveld 408576698