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

Issue 23859008: Convert HashSet, LinkedHashSet to factory methods and custom implementations. (Closed)

Created:
7 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Convert HashSet, LinkedHashSet to factory methods and custom implementations. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=27378

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+661 lines, -840 lines) Patch
M pkg/unmodifiable_collection/test/unmodifiable_collection_test.dart View 5 chunks +27 lines, -27 lines 0 comments Download
M runtime/lib/collection_patch.dart View 1 7 chunks +373 lines, -688 lines 3 comments Download
M sdk/lib/_internal/lib/collection_patch.dart View 18 chunks +192 lines, -36 lines 0 comments Download
M sdk/lib/collection/hash_set.dart View 3 chunks +46 lines, -36 lines 0 comments Download
M sdk/lib/collection/linked_hash_set.dart View 1 chunk +4 lines, -46 lines 0 comments Download
M sdk/lib/core/list.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/hash_set_test.dart View 1 2 chunks +2 lines, -0 lines 0 comments Download
M tests/corelib/set_test.dart View 2 chunks +11 lines, -1 line 0 comments Download
M tests/language/issue10561_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/language/issue9949_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Lasse Reichstein Nielsen
7 years, 3 months ago (2013-09-11 10:28:40 UTC) #1
floitsch
LGTM with comments. I think we need to guard more for concurrent modifications. https://codereview.chromium.org/23859008/diff/1/runtime/lib/collection_patch.dart File ...
7 years, 3 months ago (2013-09-11 11:23:17 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/23859008/diff/1/runtime/lib/collection_patch.dart File runtime/lib/collection_patch.dart (right): https://codereview.chromium.org/23859008/diff/1/runtime/lib/collection_patch.dart#newcode1023 runtime/lib/collection_patch.dart:1023: var _nextEntry; On 2013/09/11 11:23:17, floitsch wrote: > Add ...
7 years, 3 months ago (2013-09-11 12:25:43 UTC) #3
Lasse Reichstein Nielsen
As discussed offline, we'll add the concurrent modification checks in a separate CL after evaluating ...
7 years, 3 months ago (2013-09-11 12:30:02 UTC) #4
Lasse Reichstein Nielsen
Committed patchset #2 manually as r27378 (presubmit successful).
7 years, 3 months ago (2013-09-11 12:36:59 UTC) #5
Ivan Posva
https://codereview.chromium.org/23859008/diff/8001/runtime/lib/collection_patch.dart File runtime/lib/collection_patch.dart (right): https://codereview.chromium.org/23859008/diff/8001/runtime/lib/collection_patch.dart#newcode41 runtime/lib/collection_patch.dart:41: List<_HashMapEntry> _buckets = new List<_HashMapEntry>(_INITIAL_CAPACITY); Have you had anybody ...
7 years, 3 months ago (2013-09-11 17:47:48 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/23859008/diff/8001/runtime/lib/collection_patch.dart File runtime/lib/collection_patch.dart (right): https://codereview.chromium.org/23859008/diff/8001/runtime/lib/collection_patch.dart#newcode41 runtime/lib/collection_patch.dart:41: List<_HashMapEntry> _buckets = new List<_HashMapEntry>(_INITIAL_CAPACITY); No. I assume you ...
7 years, 3 months ago (2013-09-12 05:09:35 UTC) #7
Ivan Posva
7 years, 3 months ago (2013-09-24 21:16:46 UTC) #8
Message was sent while issue was closed.
Thanks,
-Ivan

https://codereview.chromium.org/23859008/diff/8001/runtime/lib/collection_pat...
File runtime/lib/collection_patch.dart (right):

https://codereview.chromium.org/23859008/diff/8001/runtime/lib/collection_pat...
runtime/lib/collection_patch.dart:41: List<_HashMapEntry> _buckets = new
List<_HashMapEntry>(_INITIAL_CAPACITY);
On 2013/09/12 05:09:36, Lasse Reichstein Nielsen wrote:
> No. 
> I assume you would want to avoid the type parameter on these internal lists?

Yes. And it seems that they have been remove by now, correct?

Powered by Google App Engine
This is Rietveld 408576698