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

Unified Diff: lib/coreimpl/hash_map_set.dart

Issue 11191078: Make hashCode a getter and not a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 months 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
Index: lib/coreimpl/hash_map_set.dart
diff --git a/lib/coreimpl/hash_map_set.dart b/lib/coreimpl/hash_map_set.dart
index cb723a553eb2b33d08072bed7edc232d70cc549e..daa5d064dbf0bd29667a8dad6ad552ac23118b4e 100644
--- a/lib/coreimpl/hash_map_set.dart
+++ b/lib/coreimpl/hash_map_set.dart
@@ -70,7 +70,7 @@ class HashMapImplementation<K, V> implements HashMap<K, V> {
int _probeForAdding(K key) {
if (key == null) throw const NullPointerException();
- int hash = _firstProbe(key.hashCode(), _keys.length);
+ int hash = _firstProbe(key.hashCode, _keys.length);
int numberOfProbes = 1;
int initialHash = hash;
// insertionIndex points to a slot where a key was deleted.
@@ -104,7 +104,7 @@ class HashMapImplementation<K, V> implements HashMap<K, V> {
int _probeForLookup(K key) {
if (key == null) throw const NullPointerException();
- int hash = _firstProbe(key.hashCode(), _keys.length);
+ int hash = _firstProbe(key.hashCode, _keys.length);
int numberOfProbes = 1;
int initialHash = hash;
while (true) {
« no previous file with comments | « lib/coreimpl/date.dart ('k') | lib/isolate/base.dart » ('j') | tests/co19/co19-dart2js.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698