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

Issue 8591022: Make HashMap's delete key a const expression. (Closed)

Created:
9 years, 1 month ago by Siggi Cherem (dart-lang)
Modified:
9 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make HashMap's delete key a const expression. Committed: https://code.google.com/p/dart/source/detail?r=1661

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : r #

Total comments: 19

Patch Set 4 : ivan comments #

Patch Set 5 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -19 lines) Patch
M corelib/src/implementation/hash_map_set.dart View 1 2 3 4 14 chunks +26 lines, -19 lines 6 comments Download

Messages

Total messages: 8 (0 generated)
Siggi Cherem (dart-lang)
I'm not 100% sure about whether this change is ok. I ran ./tools/presubmit.py and all ...
9 years, 1 month ago (2011-11-17 18:40:32 UTC) #1
Ivan Posva
http://codereview.chromium.org/8591022/diff/4001/corelib/src/implementation/hash_map_set.dart File corelib/src/implementation/hash_map_set.dart (right): http://codereview.chromium.org/8591022/diff/4001/corelib/src/implementation/hash_map_set.dart#newcode11 corelib/src/implementation/hash_map_set.dart:11: // [_DeleteKeySentinel]. DeletedKeySentinel http://codereview.chromium.org/8591022/diff/4001/corelib/src/implementation/hash_map_set.dart#newcode40 corelib/src/implementation/hash_map_set.dart:40: static final Object _DELETED_KEY ...
9 years, 1 month ago (2011-11-17 18:57:47 UTC) #2
Siggi Cherem (dart-lang)
thanks Ivan http://codereview.chromium.org/8591022/diff/4001/corelib/src/implementation/hash_map_set.dart File corelib/src/implementation/hash_map_set.dart (right): http://codereview.chromium.org/8591022/diff/4001/corelib/src/implementation/hash_map_set.dart#newcode11 corelib/src/implementation/hash_map_set.dart:11: // [_DeleteKeySentinel]. On 2011/11/17 18:57:47, Ivan Posva ...
9 years, 1 month ago (2011-11-17 20:00:21 UTC) #3
Ivan Posva
http://codereview.chromium.org/8591022/diff/4001/corelib/src/implementation/hash_map_set.dart File corelib/src/implementation/hash_map_set.dart (right): http://codereview.chromium.org/8591022/diff/4001/corelib/src/implementation/hash_map_set.dart#newcode11 corelib/src/implementation/hash_map_set.dart:11: // [_DeleteKeySentinel]. On 2011/11/17 20:00:21, sigmund wrote: > On ...
9 years, 1 month ago (2011-11-17 21:06:51 UTC) #4
Siggi Cherem (dart-lang)
http://codereview.chromium.org/8591022/diff/4001/corelib/src/implementation/hash_map_set.dart File corelib/src/implementation/hash_map_set.dart (right): http://codereview.chromium.org/8591022/diff/4001/corelib/src/implementation/hash_map_set.dart#newcode11 corelib/src/implementation/hash_map_set.dart:11: // [_DeleteKeySentinel]. On 2011/11/17 21:06:51, Ivan Posva wrote: > ...
9 years, 1 month ago (2011-11-17 21:13:27 UTC) #5
Ivan Posva
LGTM -ip
9 years, 1 month ago (2011-11-17 21:27:50 UTC) #6
ngeoffray
LGTM http://codereview.chromium.org/8591022/diff/9/corelib/src/implementation/hash_map_set.dart File corelib/src/implementation/hash_map_set.dart (right): http://codereview.chromium.org/8591022/diff/9/corelib/src/implementation/hash_map_set.dart#newcode53 corelib/src/implementation/hash_map_set.dart:53: // See bug 5257789. Works in the vm, ...
9 years, 1 month ago (2011-11-18 08:31:01 UTC) #7
Siggi Cherem (dart-lang)
9 years, 1 month ago (2011-11-18 17:23:57 UTC) #8
Thanks Ivan! Thanks Nicolas!

submitting...

http://codereview.chromium.org/8591022/diff/9/corelib/src/implementation/hash...
File corelib/src/implementation/hash_map_set.dart (right):

http://codereview.chromium.org/8591022/diff/9/corelib/src/implementation/hash...
corelib/src/implementation/hash_map_set.dart:53: // See bug 5257789. Works in
the vm, fails in dartc
On 2011/11/18 08:31:01, ngeoffray wrote:
> End comment with '.'. What about frog?

Done. Just double checked, frog also fails.

http://codereview.chromium.org/8591022/diff/9/corelib/src/implementation/hash...
corelib/src/implementation/hash_map_set.dart:79: // Keys can be either of type
[K] or [_DeletedKeySentinel].
On 2011/11/18 08:31:01, ngeoffray wrote:
> I wouldn't duplicate this comment all around (I guess that's for explaining
with
> existingKey is Object). It's already stated at the _keys declaration. No
strong
> opinion though.

Thx. Made the comment more specific to [existingKey].

http://codereview.chromium.org/8591022/diff/9/corelib/src/implementation/hash...
corelib/src/implementation/hash_map_set.dart:429: * canonicalized Object().
On 2011/11/18 08:31:01, ngeoffray wrote:
> [: Object() :]

Done.

Powered by Google App Engine
This is Rietveld 408576698