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

Issue 2729613004: Cleanup registration of closures (Closed)

Created:
3 years, 9 months ago by Johnni Winther
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Cleanup registration of closures + split methods and local functions in rti. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/916ec8abbb81a874f11262646cbd4c01d10c0941

Patch Set 1 #

Total comments: 12

Patch Set 2 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -126 lines) Patch
M pkg/compiler/lib/src/closure.dart View 3 chunks +9 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/enqueue.dart View 1 2 chunks +3 lines, -12 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen_listener.dart View 2 chunks +9 lines, -9 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/enqueuer.dart View 2 chunks +3 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/impact_transformer.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/mirrors_data.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/resolution_listener.dart View 2 chunks +8 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/runtime_types.dart View 8 chunks +52 lines, -23 lines 0 comments Download
M pkg/compiler/lib/src/universe/codegen_world_builder.dart View 1 chunk +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/universe/resolution_world_builder.dart View 1 7 chunks +39 lines, -56 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Johnni Winther
3 years, 9 months ago (2017-03-02 16:57:36 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/enqueue.dart File pkg/compiler/lib/src/enqueue.dart (right): https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/enqueue.dart#newcode116 pkg/compiler/lib/src/enqueue.dart:116: /// Called to register that a member has ...
3 years, 9 months ago (2017-03-14 03:02:34 UTC) #3
Johnni Winther
Committed patchset #2 (id:20001) manually as 916ec8abbb81a874f11262646cbd4c01d10c0941 (presubmit successful).
3 years, 9 months ago (2017-03-14 16:59:10 UTC) #5
Johnni Winther
3 years, 9 months ago (2017-03-14 16:59:46 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/enqueu...
File pkg/compiler/lib/src/enqueue.dart (right):

https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/enqueu...
pkg/compiler/lib/src/enqueue.dart:116: /// Called to register that a member has
been closurized. Any backend specific
On 2017/03/14 03:02:34, Siggi Cherem (dart-lang) wrote:
> a member => [member]

Done.

https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/univer...
File pkg/compiler/lib/src/universe/resolution_world_builder.dart (right):

https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/resolution_world_builder.dart:12: /// Set of
(live) local functions (closures) whose signatures reference type
On 2017/03/14 03:02:34, Siggi Cherem (dart-lang) wrote:
> Just to be sure: this is only for RTI and so it includes functions that
mention
> a free <T> in the argument types or return type? (and will not include a
closure
> that has a free type-variable in the body), correct?
> 
> For example in:
> 
> class A<T> {
>   m() {
>     void localFunction() { return T; }
>   }
> }
> 
> localFunction will not be added here, right?
> 
> 
Yes

https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/resolution_world_builder.dart:20: /// A local
function is considered live if the enclosing member function is
On 2017/03/14 03:02:34, Siggi Cherem (dart-lang) wrote:
> nit: add extra line to divide the paragraph

Duplicate paragraph, removed.

https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/resolution_world_builder.dart:28: /// A `call`
method is considered live if the enclosing class has been
On 2017/03/14 03:02:34, Siggi Cherem (dart-lang) wrote:
> `call` method => closurized member

Done.

https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/resolution_world_builder.dart:316: /// A local
function is considered live if the enclosing member function is
On 2017/03/14 03:02:34, Siggi Cherem (dart-lang) wrote:
> \n

Done.

https://codereview.chromium.org/2729613004/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/resolution_world_builder.dart:326: /// A `call`
method is considered live if the enclosing class has been
On 2017/03/14 03:02:34, Siggi Cherem (dart-lang) wrote:
> `call` method => closurized member

Done.

Powered by Google App Engine
This is Rietveld 408576698