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

Issue 12261005: Simplify the FunctionSet implementation and remove a slightly broken optimization from SelectorMap. (Closed)

Created:
7 years, 10 months ago by kasperl
Modified:
7 years, 10 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Simplify the FunctionSet implementation and remove a slightly broken optimization from SelectorMap. This saves around 70 ms when compiling swarm, so it's not a big deal performance-wise but the code is much simpler. R=ngeoffray@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=18444

Patch Set 1 #

Total comments: 2

Patch Set 2 : Avoid is checks. #

Patch Set 3 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -178 lines) Patch
M sdk/lib/_internal/compiler/implementation/universe/function_set.dart View 1 2 2 chunks +95 lines, -94 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/universe/partial_type_tree.dart View 1 chunk +2 lines, -46 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/universe/selector_map.dart View 4 chunks +30 lines, -38 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
kasperl
7 years, 10 months ago (2013-02-13 13:26:08 UTC) #1
ngeoffray
7 years, 10 months ago (2013-02-13 14:14:09 UTC) #2
LGTM

https://codereview.chromium.org/12261005/diff/1/sdk/lib/_internal/compiler/im...
File sdk/lib/_internal/compiler/implementation/universe/function_set.dart
(right):

https://codereview.chromium.org/12261005/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/universe/function_set.dart:37: :
false;
Fits in one line?

https://codereview.chromium.org/12261005/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/universe/function_set.dart:81: // set
we try to avoid clearing the cache unless we have to. For
I had a hard time understanding this sentence. Maybe rephrase to: "we avoid
clearing the cache when the element is already in the collection".

Powered by Google App Engine
This is Rietveld 408576698