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

Issue 2992763002: Add boxed fields in closure classes. (Closed)

Created:
3 years, 4 months ago by Emily Fortuna
Modified:
3 years, 4 months ago
Reviewers:
Johnni Winther, sra1
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 : . #

Patch Set 2 : . #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -32 lines) Patch
M pkg/compiler/lib/src/common/codegen.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_model/closure.dart View 1 10 chunks +68 lines, -20 lines 0 comments Download
M pkg/compiler/lib/src/js_model/closure_visitors.dart View 6 chunks +38 lines, -2 lines 2 comments Download
M pkg/compiler/lib/src/kernel/element_map_impl.dart View 1 4 chunks +22 lines, -4 lines 4 comments Download
M tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart View 1 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Emily Fortuna
3 years, 4 months ago (2017-07-31 22:56:00 UTC) #2
Emily Fortuna
On 2017/07/31 22:56:00, Emily Fortuna wrote: ps. Johnni, if you want to see what I'm ...
3 years, 4 months ago (2017-08-01 00:54:37 UTC) #5
Johnni Winther
On 2017/08/01 00:54:37, Emily Fortuna wrote: > On 2017/07/31 22:56:00, Emily Fortuna wrote: > > ...
3 years, 4 months ago (2017-08-01 07:10:19 UTC) #6
Johnni Winther
lgtm https://codereview.chromium.org/2992763002/diff/60001/pkg/compiler/lib/src/js_model/closure_visitors.dart File pkg/compiler/lib/src/js_model/closure_visitors.dart (right): https://codereview.chromium.org/2992763002/diff/60001/pkg/compiler/lib/src/js_model/closure_visitors.dart#newcode92 pkg/compiler/lib/src/js_model/closure_visitors.dart:92: _getMemberContext(_executableContext)), The member context is not needed. See ...
3 years, 4 months ago (2017-08-01 09:09:10 UTC) #7
Emily Fortuna
Committed patchset #2 (id:60001) manually as c91ce4dcb3ed494a23bc861487ffce45c68a75c6 (presubmit successful).
3 years, 4 months ago (2017-08-01 18:27:43 UTC) #9
Emily Fortuna
3 years, 4 months ago (2017-08-01 19:30:06 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/2992763002/diff/60001/pkg/compiler/lib/src/js...
File pkg/compiler/lib/src/js_model/closure_visitors.dart (right):

https://codereview.chromium.org/2992763002/diff/60001/pkg/compiler/lib/src/js...
pkg/compiler/lib/src/js_model/closure_visitors.dart:92:
_getMemberContext(_executableContext)),
On 2017/08/01 09:09:10, Johnni Winther wrote:
> The member context is not needed. See comment in [_constructClosureFields].

got it.

https://codereview.chromium.org/2992763002/diff/60001/pkg/compiler/lib/src/ke...
File pkg/compiler/lib/src/kernel/element_map_impl.dart (right):

https://codereview.chromium.org/2992763002/diff/60001/pkg/compiler/lib/src/ke...
pkg/compiler/lib/src/kernel/element_map_impl.dart:2056:
localsMap.getLocalVariable(box.executableContext),
On 2017/08/01 09:09:10, Johnni Winther wrote:
> The `Local.executableContext` is actually not needed after closure
translation.
> I'll remove it when you're done with the closure conversion.

Acknowledged.

https://codereview.chromium.org/2992763002/diff/60001/pkg/compiler/lib/src/ke...
pkg/compiler/lib/src/kernel/element_map_impl.dart:2057:
getMember(box.memberContext)),
On 2017/08/01 09:09:10, Johnni Winther wrote:
> The member is always the member passed to [constructClosureClass], just use
this
> here and avoid the need for memberContext computation.

Done.

Powered by Google App Engine
This is Rietveld 408576698