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

Issue 435263002: Attribute closure sizes to their containing functions and closures. (Closed)

Created:
6 years, 4 months ago by Ty Overby (Google)
Modified:
6 years, 4 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Attribute closure sizes to their containing functions and closures. BUG= R=johnniwinther@google.com, sra@google.com Committed: https://code.google.com/p/dart/source/detail?r=38936

Patch Set 1 #

Total comments: 2

Patch Set 2 : Got dartanalyzer to be quiet #

Total comments: 2

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M sdk/lib/_internal/compiler/implementation/dump_info.dart View 1 2 2 chunks +17 lines, -2 lines 1 comment Download
M tests/compiler/dart2js/analyze_unused_dart2js_test.dart View 1 2 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 12 (0 generated)
Ty Overby (Google)
6 years, 4 months ago (2014-08-04 21:38:32 UTC) #1
sra1
lgtm. Does it pick up all the closures in: ---------- main() { print(foo); print(foo()); print(new ...
6 years, 4 months ago (2014-08-04 23:25:59 UTC) #2
Ty Overby (Google)
On 2014/08/04 23:25:59, sra1 wrote: > lgtm. > > Does it pick up all the ...
6 years, 4 months ago (2014-08-04 23:31:55 UTC) #3
Ty Overby (Google)
https://codereview.chromium.org/435263002/diff/1/sdk/lib/_internal/compiler/implementation/dump_info.dart File sdk/lib/_internal/compiler/implementation/dump_info.dart (right): https://codereview.chromium.org/435263002/diff/1/sdk/lib/_internal/compiler/implementation/dump_info.dart#newcode248 sdk/lib/_internal/compiler/implementation/dump_info.dart:248: Map<String, dynamic> child = this.process(closure); On 2014/08/04 23:25:59, sra1 ...
6 years, 4 months ago (2014-08-04 23:32:02 UTC) #4
sra1
still lgtm
6 years, 4 months ago (2014-08-05 21:26:28 UTC) #5
Ty Overby (Google)
On 2014/08/05 21:26:28, sra1 wrote: > still lgtm Could you take a look at the ...
6 years, 4 months ago (2014-08-05 22:39:30 UTC) #6
sra1
1. Create the issue for Johnni 2. Add a TODO(NNN) 3. Fix the other nit. ...
6 years, 4 months ago (2014-08-05 23:05:37 UTC) #7
Johnni Winther
Whitelisting lgtm. https://codereview.chromium.org/435263002/diff/40001/tests/compiler/dart2js/analyze_unused_dart2js_test.dart File tests/compiler/dart2js/analyze_unused_dart2js_test.dart (right): https://codereview.chromium.org/435263002/diff/40001/tests/compiler/dart2js/analyze_unused_dart2js_test.dart#newcode29 tests/compiler/dart2js/analyze_unused_dart2js_test.dart:29: // TODO(20377): Why is MethodElement unused? It ...
6 years, 4 months ago (2014-08-06 08:50:04 UTC) #8
Ty Overby (Google)
Committed patchset #3 manually as 38936 (presubmit successful).
6 years, 4 months ago (2014-08-06 17:57:38 UTC) #9
floitsch
DBC. https://codereview.chromium.org/435263002/diff/40001/sdk/lib/_internal/compiler/implementation/dump_info.dart File sdk/lib/_internal/compiler/implementation/dump_info.dart (right): https://codereview.chromium.org/435263002/diff/40001/sdk/lib/_internal/compiler/implementation/dump_info.dart#newcode324 sdk/lib/_internal/compiler/implementation/dump_info.dart:324: MemberElement member = element as MemberElement; no need ...
6 years, 4 months ago (2014-08-11 16:03:17 UTC) #10
floitsch
On 2014/08/11 16:03:17, floitsch wrote: > DBC. > > https://codereview.chromium.org/435263002/diff/40001/sdk/lib/_internal/compiler/implementation/dump_info.dart > File sdk/lib/_internal/compiler/implementation/dump_info.dart (right): > ...
6 years, 4 months ago (2014-08-11 16:04:55 UTC) #11
Ty Overby (Google)
6 years, 4 months ago (2014-08-13 22:02:06 UTC) #12
Message was sent while issue was closed.
On 2014/08/11 16:04:55, floitsch wrote:
> On 2014/08/11 16:03:17, floitsch wrote:
> > DBC.
> > 
> >
>
https://codereview.chromium.org/435263002/diff/40001/sdk/lib/_internal/compil...
> > File sdk/lib/_internal/compiler/implementation/dump_info.dart (right):
> > 
> >
>
https://codereview.chromium.org/435263002/diff/40001/sdk/lib/_internal/compil...
> > sdk/lib/_internal/compiler/implementation/dump_info.dart:324: MemberElement
> > member = element as MemberElement;
> > no need to write "as ...".
> 
> And it would be nice to have Stephen's example as a test-case.

Stephen's example has been added in https://codereview.chromium.org/469903002/

Powered by Google App Engine
This is Rietveld 408576698