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

Unified Diff: dart/runtime/lib/collection_patch.dart

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/runtime/include/dart_api.h ('k') | dart/runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/lib/collection_patch.dart
===================================================================
--- dart/runtime/lib/collection_patch.dart (revision 29808)
+++ dart/runtime/lib/collection_patch.dart (working copy)
@@ -562,7 +562,7 @@
bool contains(Object object) {
int index = _hashCode(object) & (_buckets.length - 1);
- HashSetEntry entry = _buckets[index];
+ _HashSetEntry entry = _buckets[index];
while (entry != null) {
if (_equals(entry.key, object)) return true;
entry = entry.next;
@@ -572,7 +572,7 @@
E lookup(Object object) {
int index = _hashCode(object) & (_buckets.length - 1);
- HashSetEntry entry = _buckets[index];
+ _HashSetEntry entry = _buckets[index];
while (entry != null) {
var key = entry.key;
if (_equals(key, object)) return key;
@@ -586,7 +586,7 @@
bool add(E element) {
int hashCode = _hashCode(element);
int index = hashCode & (_buckets.length - 1);
- HashSetEntry entry = _buckets[index];
+ _HashSetEntry entry = _buckets[index];
while (entry != null) {
if (_equals(entry.key, element)) return false;
entry = entry.next;
@@ -641,8 +641,8 @@
void _filterWhere(bool test(E element), bool removeMatching) {
int length = _buckets.length;
for (int index = 0; index < length; index++) {
- HashSetEntry entry = _buckets[index];
- HashSetEntry previous = null;
+ _HashSetEntry entry = _buckets[index];
+ _HashSetEntry previous = null;
while (entry != null) {
int modificationCount = _modificationCount;
bool testResult = test(entry.key);
@@ -650,7 +650,7 @@
throw new ConcurrentModificationError(this);
}
if (testResult == removeMatching) {
- HashSetEntry next = entry.remove();
+ _HashSetEntry next = entry.remove();
if (previous == null) {
_buckets[index] = next;
} else {
« no previous file with comments | « dart/runtime/include/dart_api.h ('k') | dart/runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698