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

Issue 1212613009: dart2js: Implement frequency based naming. (Closed)

Created:
5 years, 5 months ago by herhut
Modified:
5 years, 5 months ago
Reviewers:
floitsch, sra1
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 13

Patch Set 2 : comments #

Patch Set 3 : Implement unique key for names. #

Patch Set 4 : added a test #

Patch Set 5 : Reserve reserved names :) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+649 lines, -305 lines) Patch
M pkg/compiler/lib/src/apiimpl.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/dart2js.dart View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js/js.dart View 1 2 chunks +85 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/field_naming_mixin.dart View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
A pkg/compiler/lib/src/js_backend/frequency_namer.dart View 1 2 3 4 1 chunk +142 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/js_backend.dart View 1 2 2 chunks +4 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/minify_namer.dart View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/namer.dart View 12 chunks +62 lines, -156 lines 0 comments Download
A pkg/compiler/lib/src/js_backend/namer_names.dart View 1 2 1 chunk +181 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/class_stub_generator.dart View 1 chunk +23 lines, -26 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/js_emitter.dart View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/metadata_collector.dart View 1 2 7 chunks +8 lines, -44 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/model.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart View 1 2 3 chunks +6 lines, -45 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart View 2 chunks +7 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/program_builder.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M pkg/js_ast/lib/src/nodes.dart View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M pkg/js_ast/lib/src/printer.dart View 3 chunks +9 lines, -3 lines 0 comments Download
A tests/compiler/dart2js/token_naming_test.dart View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
herhut
Here is a first go at implementing frequency based naming. It also fixes the size ...
5 years, 5 months ago (2015-06-30 16:33:26 UTC) #2
sra1
js_lib lgtm. I'll look at the rest later today.
5 years, 5 months ago (2015-06-30 16:59:31 UTC) #3
sra1
Please find a way to add some tests for some of the machinery. https://codereview.chromium.org/1212613009/diff/1/pkg/compiler/lib/src/apiimpl.dart File ...
5 years, 5 months ago (2015-07-01 04:11:10 UTC) #4
herhut
https://codereview.chromium.org/1212613009/diff/1/pkg/compiler/lib/src/apiimpl.dart File pkg/compiler/lib/src/apiimpl.dart (right): https://codereview.chromium.org/1212613009/diff/1/pkg/compiler/lib/src/apiimpl.dart#newcode82 pkg/compiler/lib/src/apiimpl.dart:82: useFrequencyNamer: hasOption(options, "--use-frequency-naming"), On 2015/07/01 04:11:09, sra1 wrote: > ...
5 years, 5 months ago (2015-07-02 08:54:51 UTC) #5
herhut
On 2015/07/02 08:54:51, herhut wrote: > https://codereview.chromium.org/1212613009/diff/1/pkg/compiler/lib/src/apiimpl.dart > File pkg/compiler/lib/src/apiimpl.dart (right): > > https://codereview.chromium.org/1212613009/diff/1/pkg/compiler/lib/src/apiimpl.dart#newcode82 > ...
5 years, 5 months ago (2015-07-02 11:36:21 UTC) #6
herhut
sra, PTAL I wonder how we ensure that local variables do not clash with holders? ...
5 years, 5 months ago (2015-07-02 14:47:40 UTC) #7
herhut
On 2015/07/02 14:47:40, herhut wrote: > sra, PTAL > > I wonder how we ensure ...
5 years, 5 months ago (2015-07-03 08:42:14 UTC) #9
herhut
5 years, 5 months ago (2015-07-03 11:06:40 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
9fa33e4e72d4d3d84598863e189d465c26e58841 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698