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

Unified Diff: src/address-map.h

Issue 2555213005: [serializer] fix hash function for hashmap used for serializing. (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/address-map.h
diff --git a/src/address-map.h b/src/address-map.h
index 8fde35ef353a869ac3735b9fb99bdab3f03b91e5..d50847fcd46569ae7fe1e701fc5057b6a1de43dc 100644
--- a/src/address-map.h
+++ b/src/address-map.h
@@ -38,9 +38,7 @@ class PointerToIndexHashMap
return reinterpret_cast<uintptr_t>(value);
}
- static uint32_t Hash(uintptr_t key) {
- return static_cast<uint32_t>(key >> kPointerSizeLog2);
- }
+ static uint32_t Hash(uintptr_t key) { return static_cast<uint32_t>(key); }
};
class AddressToIndexHashMap : public PointerToIndexHashMap<Address> {};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698