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

Issue 1568213003: Add EnumSet. (Closed)

Created:
4 years, 11 months ago by Johnni Winther
Modified:
4 years, 11 months ago
Reviewers:
sigurdm
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+553 lines, -93 lines) Patch
M pkg/compiler/lib/src/resolution/registry.dart View 3 chunks +8 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/universe/class_set.dart View 1 13 chunks +163 lines, -66 lines 0 comments Download
A pkg/compiler/lib/src/util/enumset.dart View 1 1 chunk +199 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/world.dart View 4 chunks +8 lines, -14 lines 0 comments Download
M tests/compiler/dart2js/class_set_test.dart View 13 chunks +25 lines, -9 lines 0 comments Download
A tests/compiler/dart2js/enumset_test.dart View 1 chunk +150 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Johnni Winther
4 years, 11 months ago (2016-01-08 14:40:36 UTC) #2
sigurdm
LGTM https://codereview.chromium.org/1568213003/diff/1/pkg/compiler/lib/src/universe/class_set.dart File pkg/compiler/lib/src/universe/class_set.dart (right): https://codereview.chromium.org/1568213003/diff/1/pkg/compiler/lib/src/universe/class_set.dart#newcode420 pkg/compiler/lib/src/universe/class_set.dart:420: /// The [mask] defines the included subset of ...
4 years, 11 months ago (2016-01-11 08:48:55 UTC) #3
Johnni Winther
Committed patchset #2 (id:20001) manually as 2ddf46bb8569354814bdd55ab2b098be661bfa66 (presubmit successful).
4 years, 11 months ago (2016-01-11 10:29:53 UTC) #5
Johnni Winther
4 years, 11 months ago (2016-01-22 11:54:13 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1568213003/diff/1/pkg/compiler/lib/src/univer...
File pkg/compiler/lib/src/universe/class_set.dart (right):

https://codereview.chromium.org/1568213003/diff/1/pkg/compiler/lib/src/univer...
pkg/compiler/lib/src/universe/class_set.dart:420: /// The [mask] defines the
included subset of the subtypes based on their
On 2016/01/11 08:48:55, sigurdm wrote:
> It is not clear from the description of `mask` that we accept all subtypes
with
> an *intersecting* mask.

Updated the comments.

https://codereview.chromium.org/1568213003/diff/1/pkg/compiler/lib/src/util/e...
File pkg/compiler/lib/src/util/enumset.dart (right):

https://codereview.chromium.org/1568213003/diff/1/pkg/compiler/lib/src/util/e...
pkg/compiler/lib/src/util/enumset.dart:74: if (other is! EnumSet) return false;
On 2016/01/11 08:48:55, sigurdm wrote:
> Ideally this should be
> ```
> if (other is! EnumSet<E>) return false;
> ```
> I don't know about the performance implications of that though...

Updated. Should be OK as the VM canonicalizes the instantiated types.

Powered by Google App Engine
This is Rietveld 408576698