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

Issue 10832109: Refactor the way we emit no such method handlers so it's easier to optimize it later. (Closed)

Created:
8 years, 4 months ago by kasperl
Modified:
8 years, 4 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Refactor the way we emit no such method handlers so it's easier to optimize it later. Avoid adding duplicate JavaScript functions (may occur if we have multiple different typed selectors in play or if the same library shows up multiple times in the library map). R=floitsch@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=10162

Patch Set 1 #

Total comments: 1

Patch Set 2 : Improve NSM handling. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -65 lines) Patch
M lib/compiler/implementation/emitter.dart View 1 3 chunks +69 lines, -63 lines 0 comments Download
M lib/compiler/implementation/namer.dart View 1 2 chunks +9 lines, -0 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/world.dart View 1 4 chunks +17 lines, -0 lines 2 comments Download
M runtime/lib/object.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
kasperl
8 years, 4 months ago (2012-08-02 08:39:45 UTC) #1
floitsch
LGTM! https://chromiumcodereview.appspot.com/10832109/diff/1/lib/compiler/implementation/emitter.dart File lib/compiler/implementation/emitter.dart (right): https://chromiumcodereview.appspot.com/10832109/diff/1/lib/compiler/implementation/emitter.dart#newcode906 lib/compiler/implementation/emitter.dart:906: // without taking the selector (arity) into account. ...
8 years, 4 months ago (2012-08-02 11:21:51 UTC) #2
kasperl
Updated implementation to make use of type information in typed selectors and where private names ...
8 years, 4 months ago (2012-08-02 12:53:16 UTC) #3
floitsch
Still LGTM.
8 years, 4 months ago (2012-08-02 13:13:48 UTC) #4
ahe
FYI https://chromiumcodereview.appspot.com/10832109/diff/1004/lib/compiler/implementation/world.dart File lib/compiler/implementation/world.dart (right): https://chromiumcodereview.appspot.com/10832109/diff/1004/lib/compiler/implementation/world.dart#newcode79 lib/compiler/implementation/world.dart:79: bool mayHaveUserDefinedNoSuchMethod(Type type) { We should consider this ...
8 years, 4 months ago (2012-08-02 17:15:05 UTC) #5
kasperl
8 years, 4 months ago (2012-08-03 05:21:00 UTC) #6
https://chromiumcodereview.appspot.com/10832109/diff/1004/lib/compiler/implem...
File lib/compiler/implementation/world.dart (right):

https://chromiumcodereview.appspot.com/10832109/diff/1004/lib/compiler/implem...
lib/compiler/implementation/world.dart:79: bool
mayHaveUserDefinedNoSuchMethod(Type type) {
On 2012/08/02 17:15:05, ahe wrote:
> We should consider this class as "delete-only" as it should be superseded by
> Enqueuer :-)

Yeah, that's probably better.

Powered by Google App Engine
This is Rietveld 408576698