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

Issue 891673003: dart2js: Refactoring, documentation, and a few bugfixes in Namer class. (Closed)

Created:
5 years, 10 months ago by asgerf
Modified:
5 years, 9 months ago
Reviewers:
floitsch, sra1
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js: Refactoring, documentation, and a few bugfixes in Namer class. See long doc comment in namer.dart. BUG= R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=43588 Reverted: https://code.google.com/p/dart/source/detail?r=43590 (to avoid rebase conflicts for people pushing to trunk) Committed: https://code.google.com/p/dart/source/detail?r=43724 Reverted: https://code.google.com/p/dart/source/detail?r=43739 (red bots) Committed: https://code.google.com/p/dart/source/detail?r=44092

Patch Set 1 #

Total comments: 3

Patch Set 2 : Typo and TODO about clash in named parameters #

Total comments: 104

Patch Set 3 : MEGAPATCH #

Total comments: 36

Patch Set 4 : Comments & some fixes #

Total comments: 5

Patch Set 5 : Final comments #

Patch Set 6 : Removed obsolete TODO #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase again #

Patch Set 9 : Unrevert #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase #

Patch Set 12 : Unrevert + rebase #

Patch Set 13 : Bugfixes and test case repair #

Total comments: 3

Patch Set 14 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+945 lines, -439 lines) Patch
M pkg/compiler/lib/src/compiler.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/glue.dart View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/constant_emitter.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/minify_namer.dart View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +26 lines, -19 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/namer.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 18 chunks +654 lines, -319 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/runtime_types.dart View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/class_stub_generator.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +17 lines, -9 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +12 lines, -12 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder.dart View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +10 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/ssa/codegen.dart View 1 2 3 4 5 6 7 8 9 10 5 chunks +5 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/ssa/ssa_tracer.dart View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/mirrors_used_test.dart View 1 2 1 chunk +1 line, -2 lines 0 comments Download
A tests/html/custom_element_method_clash_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +47 lines, -0 lines 0 comments Download
A + tests/html/custom_element_method_clash_test.html View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
A tests/html/custom_element_name_clash_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +39 lines, -0 lines 0 comments Download
A + tests/html/custom_element_name_clash_test.html View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
A + tests/language/constructor_name_clash_lib.dart View 1 chunk +7 lines, -4 lines 0 comments Download
A + tests/language/constructor_name_clash_test.dart View 1 chunk +10 lines, -10 lines 0 comments Download
A + tests/language/is_operator_clash_test.dart View 2 chunks +19 lines, -7 lines 0 comments Download
A tests/language/named_parameter_clash_test.dart View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A + tests/language/private_clash_lib.dart View 1 2 3 4 5 6 1 chunk +7 lines, -7 lines 0 comments Download
A tests/language/private_clash_test.dart View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
asgerf
https://codereview.chromium.org/891673003/diff/1/pkg/compiler/lib/src/js_backend/minify_namer.dart File pkg/compiler/lib/src/js_backend/minify_namer.dart (right): https://codereview.chromium.org/891673003/diff/1/pkg/compiler/lib/src/js_backend/minify_namer.dart#newcode52 pkg/compiler/lib/src/js_backend/minify_namer.dart:52: if (!_hasBannedPrefix(name)) return name; I believe this was a ...
5 years, 10 months ago (2015-01-30 15:20:29 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/891673003/diff/20001/pkg/compiler/lib/src/js_backend/backend.dart File pkg/compiler/lib/src/js_backend/backend.dart (right): https://codereview.chromium.org/891673003/diff/20001/pkg/compiler/lib/src/js_backend/backend.dart#newcode741 pkg/compiler/lib/src/js_backend/backend.dart:741: String name = namer.getInterceptorName(classes); We need to change ...
5 years, 10 months ago (2015-01-30 21:03:38 UTC) #3
sra1
DBC https://codereview.chromium.org/891673003/diff/20001/pkg/compiler/lib/src/js_backend/minify_namer.dart File pkg/compiler/lib/src/js_backend/minify_namer.dart (right): https://codereview.chromium.org/891673003/diff/20001/pkg/compiler/lib/src/js_backend/minify_namer.dart#newcode52 pkg/compiler/lib/src/js_backend/minify_namer.dart:52: if (!_hasBannedPrefix(name)) return name; Where are 'g' and ...
5 years, 10 months ago (2015-01-30 22:48:27 UTC) #5
asgerf
Thanks for the great reviews! PTAL as there are major changes. Sorry about the mega ...
5 years, 10 months ago (2015-02-03 17:39:14 UTC) #6
floitsch
Still LGTM. https://codereview.chromium.org/891673003/diff/20001/pkg/compiler/lib/src/js_backend/minify_namer.dart File pkg/compiler/lib/src/js_backend/minify_namer.dart (right): https://codereview.chromium.org/891673003/diff/20001/pkg/compiler/lib/src/js_backend/minify_namer.dart#newcode34 pkg/compiler/lib/src/js_backend/minify_namer.dart:34: {bool ensureSafe, bool sanitizeForAnnotations}) { On 2015/02/03 ...
5 years, 10 months ago (2015-02-04 00:10:12 UTC) #7
asgerf
https://codereview.chromium.org/891673003/diff/40001/pkg/compiler/lib/src/js_backend/backend.dart File pkg/compiler/lib/src/js_backend/backend.dart (right): https://codereview.chromium.org/891673003/diff/40001/pkg/compiler/lib/src/js_backend/backend.dart#newcode542 pkg/compiler/lib/src/js_backend/backend.dart:542: String name = namer.nameForOneShotInterceptor(selector, classes); On 2015/02/04 00:10:11, floitsch ...
5 years, 10 months ago (2015-02-06 12:15:18 UTC) #9
floitsch
Still LGTM. https://codereview.chromium.org/891673003/diff/60001/pkg/compiler/lib/src/js_backend/minify_namer.dart File pkg/compiler/lib/src/js_backend/minify_namer.dart (right): https://codereview.chromium.org/891673003/diff/60001/pkg/compiler/lib/src/js_backend/minify_namer.dart#newcode34 pkg/compiler/lib/src/js_backend/minify_namer.dart:34: {bool sanitizeForNatives, bool sanitizeForAnnotations}) { Add comment ...
5 years, 10 months ago (2015-02-06 12:59:55 UTC) #10
asgerf
https://codereview.chromium.org/891673003/diff/60001/pkg/compiler/lib/src/js_backend/minify_namer.dart File pkg/compiler/lib/src/js_backend/minify_namer.dart (right): https://codereview.chromium.org/891673003/diff/60001/pkg/compiler/lib/src/js_backend/minify_namer.dart#newcode34 pkg/compiler/lib/src/js_backend/minify_namer.dart:34: {bool sanitizeForNatives, bool sanitizeForAnnotations}) { On 2015/02/06 12:59:55, floitsch ...
5 years, 10 months ago (2015-02-06 13:27:06 UTC) #12
asgerf
On 2015/02/06 13:27:06, asgerf wrote: > https://codereview.chromium.org/891673003/diff/60001/pkg/compiler/lib/src/js_backend/minify_namer.dart > File pkg/compiler/lib/src/js_backend/minify_namer.dart (right): > > https://codereview.chromium.org/891673003/diff/60001/pkg/compiler/lib/src/js_backend/minify_namer.dart#newcode34 > ...
5 years, 10 months ago (2015-02-06 13:52:16 UTC) #13
asgerf
Committed patchset #8 (id:140001) manually as 43588 (presubmit successful).
5 years, 10 months ago (2015-02-09 11:31:42 UTC) #14
asgerf
Committed patchset #11 (id:200001) manually as 43724 (presubmit successful).
5 years, 10 months ago (2015-02-12 13:44:02 UTC) #15
floitsch
Still LGTM. https://chromiumcodereview.appspot.com/891673003/diff/240001/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart File pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart (right): https://chromiumcodereview.appspot.com/891673003/diff/240001/pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart#newcode57 pkg/compiler/lib/src/js_emitter/old_emitter/class_emitter.dart:57: /** Please add a new line here ...
5 years, 10 months ago (2015-02-25 15:05:58 UTC) #16
asgerf
5 years, 9 months ago (2015-02-27 14:21:28 UTC) #17
Message was sent while issue was closed.
Committed patchset #14 (id:260001) manually as 44092 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698