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

Unified Diff: src/objects.cc

Issue 113199: X64: General fixes - added inline definitions and changed tome places to intptr_t. (Closed)
Patch Set: Created 11 years, 7 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: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 9a7f7aa6742529bcf963b7278438f65558bab63d..d388fb34771f754a7ec1b1e151e349285e962341 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -6725,7 +6725,9 @@ class MapNameKey : public HashTableKey {
virtual HashFunction GetHashFunction() { return MapNameHash; }
static uint32_t MapNameHashHelper(Map* map, String* name) {
- return reinterpret_cast<uint32_t>(map) ^ name->Hash();
+ uintptr_t addr_hash =
+ static_cast<uint32_t>(reinterpret_cast<uintptr_t>(map));
Dean McNamee 2009/05/12 08:22:40 comment about truncation?
Lasse Reichstein 2009/05/12 10:32:51 Added
+ return addr_hash ^ name->Hash();
}
static uint32_t MapNameHash(Object* obj) {

Powered by Google App Engine
This is Rietveld 408576698