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) { |