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

Issue 1428853004: Use better names for captured variables in closures. (Closed)

Created:
5 years, 1 month ago by herhut
Modified:
5 years, 1 month ago
CC:
reviews_dartlang.org, Siggi Cherem (dart-lang)
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use better names for captured variables in closures. BUG= R=sra@google.com Committed: https://github.com/dart-lang/sdk/commit/6ba13e257044bbf64b0d57caf0fffb7af6aa87ba

Patch Set 1 : #

Total comments: 22

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -108 lines) Patch
M pkg/compiler/lib/src/closure.dart View 1 7 chunks +30 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/field_naming_mixin.dart View 2 chunks +2 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/frequency_namer.dart View 2 chunks +2 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/minify_namer.dart View 11 chunks +21 lines, -25 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/namer.dart View 1 19 chunks +75 lines, -66 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart View 1 3 chunks +6 lines, -6 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (3 generated)
herhut
Here is a better namer for closure fields. It does not touch the naming of ...
5 years, 1 month ago (2015-11-03 14:40:25 UTC) #2
Siggi Cherem (dart-lang)
cool, thanks Stephan. Just a DBC below. https://codereview.chromium.org/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart File pkg/compiler/lib/src/closure.dart (right): https://codereview.chromium.org/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart#newcode272 pkg/compiler/lib/src/closure.dart:272: String proposeName() ...
5 years, 1 month ago (2015-11-03 17:21:34 UTC) #4
sra1
I love how much better the code looks. I'm concerned about: 1. The additional long-lived ...
5 years, 1 month ago (2015-11-04 02:27:49 UTC) #6
sra1
https://codereview.chromium.org/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart File pkg/compiler/lib/src/closure.dart (right): https://codereview.chromium.org/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart#newcode128 pkg/compiler/lib/src/closure.dart:128: String proposeName() => local.name; Can this propose that the ...
5 years, 1 month ago (2015-11-04 04:09:25 UTC) #7
sra1
I was thinking something more like this, but perhaps storing the two names to not ...
5 years, 1 month ago (2015-11-04 04:25:10 UTC) #8
herhut
I have revamped it a little. https://chromiumcodereview.appspot.com/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart File pkg/compiler/lib/src/closure.dart (right): https://chromiumcodereview.appspot.com/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart#newcode111 pkg/compiler/lib/src/closure.dart:111: NameProposingEntity { On ...
5 years, 1 month ago (2015-11-04 15:25:48 UTC) #9
sra1
lgtm https://chromiumcodereview.appspot.com/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart File pkg/compiler/lib/src/closure.dart (right): https://chromiumcodereview.appspot.com/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart#newcode128 pkg/compiler/lib/src/closure.dart:128: String proposeName() => local.name; On 2015/11/04 15:25:47, herhut ...
5 years, 1 month ago (2015-11-04 17:59:22 UTC) #10
herhut
https://chromiumcodereview.appspot.com/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart File pkg/compiler/lib/src/closure.dart (right): https://chromiumcodereview.appspot.com/1428853004/diff/20001/pkg/compiler/lib/src/closure.dart#newcode128 pkg/compiler/lib/src/closure.dart:128: String proposeName() => local.name; On 2015/11/04 17:59:22, sra1 wrote: ...
5 years, 1 month ago (2015-11-05 10:33:47 UTC) #11
herhut
5 years, 1 month ago (2015-11-05 10:57:55 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as
6ba13e257044bbf64b0d57caf0fffb7af6aa87ba (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698