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

Issue 2278143003: locateSingleElement improvement for mixins. (Closed)

Created:
4 years, 3 months ago by sra1
Modified:
4 years, 3 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

locateSingleElement improvement for mixins. I see several code improvements: 1. More inlining of small methods in mixin classes like ListMixin.isEmpty 2. Fewer interceptor calls where the target is now known but not inlined. 3. Implied getters and setters on mixin classes are inlined to direct field references. Addresses https://github.com/dart-lang/sdk/issues/27160 R=johnniwinther@google.com Committed: https://github.com/dart-lang/sdk/commit/7b3bc6933a7dc26e36ac56eef472bde1eedaad1e

Patch Set 1 #

Total comments: 6

Patch Set 2 : renames #

Patch Set 3 : dartfmt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -2 lines) Patch
M pkg/compiler/lib/src/types/flat_type_mask.dart View 1 1 chunk +12 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/world.dart View 1 2 3 chunks +38 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
sra1
This addresses the problem that we were not inlining trivial methods from mixin classes.
4 years, 3 months ago (2016-08-27 03:02:46 UTC) #10
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2278143003/diff/100001/pkg/compiler/lib/src/types/flat_type_mask.dart File pkg/compiler/lib/src/types/flat_type_mask.dart (right): https://codereview.chromium.org/2278143003/diff/100001/pkg/compiler/lib/src/types/flat_type_mask.dart#newcode697 pkg/compiler/lib/src/types/flat_type_mask.dart:697: // if (classWorld.isUsedAsMixin(enclosing)) { delete? https://codereview.chromium.org/2278143003/diff/100001/pkg/compiler/lib/src/world.dart File pkg/compiler/lib/src/world.dart (right): ...
4 years, 3 months ago (2016-08-29 19:26:01 UTC) #12
sra1
https://codereview.chromium.org/2278143003/diff/100001/pkg/compiler/lib/src/world.dart File pkg/compiler/lib/src/world.dart (right): https://codereview.chromium.org/2278143003/diff/100001/pkg/compiler/lib/src/world.dart#newcode515 pkg/compiler/lib/src/world.dart:515: bool isSubclassOfMixinOf(ClassElement cls, ClassElement mixin) { On 2016/08/29 19:26:00, ...
4 years, 3 months ago (2016-08-29 20:37:18 UTC) #13
Johnni Winther
lgtm https://codereview.chromium.org/2278143003/diff/100001/pkg/compiler/lib/src/world.dart File pkg/compiler/lib/src/world.dart (right): https://codereview.chromium.org/2278143003/diff/100001/pkg/compiler/lib/src/world.dart#newcode515 pkg/compiler/lib/src/world.dart:515: bool isSubclassOfMixinOf(ClassElement cls, ClassElement mixin) { On 2016/08/29 ...
4 years, 3 months ago (2016-08-30 11:36:08 UTC) #14
sra1
4 years, 3 months ago (2016-08-30 21:09:09 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:140001) manually as
7b3bc6933a7dc26e36ac56eef472bde1eedaad1e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698