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

Issue 448943004: Refactor and simplify the dart2dart renamer. (Closed)

Created:
6 years, 4 months ago by sigurdm
Modified:
6 years, 4 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Refactor and simplify the dart2dart renamer and placeholder collector. Also solves an issue where a local was renamed to dynamic. BUG=19751, 13077, 12747, 12753 R=jgruber@google.com, johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=39326

Patch Set 1 : #

Total comments: 38

Patch Set 2 : fix a number of tests, and remove unused typedef #

Total comments: 1

Patch Set 3 : Address Jakob's comments #

Patch Set 4 : Rely (almost) only on Entity from renamer. Improve handling of privates and constructors. Avoid sor… #

Total comments: 26

Patch Set 5 : Adressing Johnni's comments #

Patch Set 6 : Fix minifying name generation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+553 lines, -470 lines) Patch
M sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_builder.dart View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart View 1 2 3 4 7 chunks +43 lines, -23 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/backend_ast_to_frontend_ast.dart View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/dart_backend.dart View 2 chunks +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/emitter.dart View 1 chunk +0 lines, -25 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart View 1 2 3 4 24 chunks +170 lines, -70 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart View 1 2 3 4 5 3 chunks +208 lines, -210 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/modelx.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/registry.dart View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/dart_backend_test.dart View 1 2 3 21 chunks +106 lines, -116 lines 0 comments Download
M tests/compiler/dart2js/mirror_helper_rename_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/mirror_helper_test.dart View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download
M tests/compiler/dart2js/mirror_helper_unique_minification_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/resolver_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 4 chunks +0 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sigurdm
6 years, 4 months ago (2014-08-07 12:19:17 UTC) #1
jgruber1
lgtm with comments. https://codereview.chromium.org/448943004/diff/20001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart File sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart (right): https://codereview.chromium.org/448943004/diff/20001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart#newcode398 sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart:398: cutDeclarationTypes: shouldCutDeclarationTypes); Does cutDeclarationTypes have to ...
6 years, 4 months ago (2014-08-07 15:15:05 UTC) #2
sigurdm
https://codereview.chromium.org/448943004/diff/20001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart File sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart (right): https://codereview.chromium.org/448943004/diff/20001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart#newcode398 sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart:398: cutDeclarationTypes: shouldCutDeclarationTypes); On 2014/08/07 15:15:04, jgruber wrote: > Does ...
6 years, 4 months ago (2014-08-14 09:39:17 UTC) #3
Johnni Winther
lgtm https://codereview.chromium.org/448943004/diff/100001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart File sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart (right): https://codereview.chromium.org/448943004/diff/100001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart#newcode411 sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart:411: final sortedClassMembers = new Map<ClassElement, List<Element>>(); Add type ...
6 years, 4 months ago (2014-08-15 07:49:20 UTC) #4
sigurdm
https://codereview.chromium.org/448943004/diff/100001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart File sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart (right): https://codereview.chromium.org/448943004/diff/100001/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart#newcode411 sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart:411: final sortedClassMembers = new Map<ClassElement, List<Element>>(); On 2014/08/15 07:49:19, ...
6 years, 4 months ago (2014-08-15 13:06:27 UTC) #5
sigurdm
6 years, 4 months ago (2014-08-18 10:39:27 UTC) #6
Message was sent while issue was closed.
Committed patchset #6 manually as 39326 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698