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

Issue 11865010: Simplification: avoid boxing/unboxing of ClassElements in ClassBaseTypes. This makes things shorter… (Closed)

Created:
7 years, 11 months ago by polux
Modified:
7 years, 11 months ago
Reviewers:
karlklose
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Simplification: avoid boxing/unboxing of ClassElements in ClassBaseTypes. This makes things shorter, faster, and ensures by typing that only classes are passed to functions that expect classes. Committed: https://code.google.com/p/dart/source/detail?r=17184

Patch Set 1 #

Total comments: 2

Patch Set 2 : classElem(ens) -> cls #

Patch Set 3 : sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -37 lines) Patch
M sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart View 1 16 chunks +34 lines, -37 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
polux
Cleanup CL before handling field initialization.
7 years, 11 months ago (2013-01-11 15:49:09 UTC) #1
karlklose
LGTM. https://codereview.chromium.org/11865010/diff/1/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart File sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart (right): https://codereview.chromium.org/11865010/diff/1/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart#newcode1088 sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart:1088: Element classElem = member.getEnclosingClass(); 'classElem' -> 'classElement' (or ...
7 years, 11 months ago (2013-01-15 09:56:40 UTC) #2
polux
7 years, 11 months ago (2013-01-17 09:52:47 UTC) #3
https://codereview.chromium.org/11865010/diff/1/sdk/lib/_internal/compiler/im...
File
sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart
(right):

https://codereview.chromium.org/11865010/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart:1088:
Element classElem = member.getEnclosingClass();
On 2013/01/15 09:56:40, karlklose wrote:
> 'classElem' -> 'classElement' (or even 'cls')?

Done everywhere for consistency.

Powered by Google App Engine
This is Rietveld 408576698