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

Issue 10191016: Introduce typed selectors for getters and setters also for better tree shaking. (Closed)

Created:
8 years, 8 months ago by ngeoffray
Modified:
8 years, 8 months ago
Reviewers:
floitsch, kasperl
CC:
reviews_dartlang.org, ahe, karlklose, Lasse Reichstein Nielsen
Visibility:
Public.

Description

Introduce typed selectors for getters and setters also for better tree shaking. FYI: Swarm from 862465 to 848387 (14k saved). Committed: https://code.google.com/p/dart/source/detail?r=6997

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -176 lines) Patch
M lib/compiler/implementation/compiler.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M lib/compiler/implementation/elements/elements.dart View 1 chunk +1 line, -0 lines 0 comments Download
M lib/compiler/implementation/emitter.dart View 1 6 chunks +23 lines, -19 lines 0 comments Download
M lib/compiler/implementation/enqueue.dart View 1 2 5 chunks +26 lines, -65 lines 0 comments Download
M lib/compiler/implementation/resolver.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 chunk +1 line, -2 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 4 chunks +26 lines, -31 lines 0 comments Download
M lib/compiler/implementation/universe.dart View 1 2 5 chunks +123 lines, -53 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
8 years, 8 months ago (2012-04-25 13:30:30 UTC) #1
kasperl
First round of comments: https://chromiumcodereview.appspot.com/10191016/diff/2001/lib/compiler/implementation/universe.dart File lib/compiler/implementation/universe.dart (right): https://chromiumcodereview.appspot.com/10191016/diff/2001/lib/compiler/implementation/universe.dart#newcode37 lib/compiler/implementation/universe.dart:37: bool hasOneMatchingSelector( These are all ...
8 years, 8 months ago (2012-04-25 13:38:06 UTC) #2
ngeoffray
https://chromiumcodereview.appspot.com/10191016/diff/2001/lib/compiler/implementation/universe.dart File lib/compiler/implementation/universe.dart (right): https://chromiumcodereview.appspot.com/10191016/diff/2001/lib/compiler/implementation/universe.dart#newcode37 lib/compiler/implementation/universe.dart:37: bool hasOneMatchingSelector( On 2012/04/25 13:38:06, kasperl wrote: > These ...
8 years, 8 months ago (2012-04-25 13:58:44 UTC) #3
kasperl
LGTM. https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implementation/enqueue.dart File lib/compiler/implementation/enqueue.dart (right): https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implementation/enqueue.dart#newcode71 lib/compiler/implementation/enqueue.dart:71: Why some many newlines? https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implementation/enqueue.dart#newcode133 lib/compiler/implementation/enqueue.dart:133: Map<SourceString, Set<Selector>> ...
8 years, 8 months ago (2012-04-25 14:14:54 UTC) #4
ngeoffray
8 years, 8 months ago (2012-04-26 09:31:51 UTC) #5
Thanks Kasper

https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implem...
File lib/compiler/implementation/enqueue.dart (right):

https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implem...
lib/compiler/implementation/enqueue.dart:71: 
On 2012/04/25 14:14:54, kasperl wrote:
> Why some many newlines?

Done.

https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implem...
lib/compiler/implementation/enqueue.dart:133: Map<SourceString, Set<Selector>>
invokedGetters =
On 2012/04/25 14:14:54, kasperl wrote:
> This shares a ton of code with registerSetter and registerInvocation. Refactor
> ala:
> 
>   registerInvocation(...) => 
>      registerSelector(compiler.universe.invokedNames,
>                       methodName,
>                       selector);
> 
> Why do you pass both a method name and the selector? Somehow it smells like a
> selector should have a name.

Done.

https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implem...
lib/compiler/implementation/enqueue.dart:134: compiler.universe.invokedGetters;
On 2012/04/25 14:14:54, kasperl wrote:
> More indentation.

Done.

https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implem...
File lib/compiler/implementation/universe.dart (right):

https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implem...
lib/compiler/implementation/universe.dart:38: Set<Selector> selectors, Element
member, Compiler compiler) {
On 2012/04/25 14:14:54, kasperl wrote:
> Move first argument to previous line and split after each argument?

Done.

https://chromiumcodereview.appspot.com/10191016/diff/2002/lib/compiler/implem...
lib/compiler/implementation/universe.dart:314: 
On 2012/04/25 14:14:54, kasperl wrote:
> I'd remove this newline.

Done.

Powered by Google App Engine
This is Rietveld 408576698