Review URL: https://chromiumcodereview.appspot.com/
10825099
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12236
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
static int Hash(DescriptorArray* array, String* name) {
// Uses only lower 32 bits if pointers are larger.
uint32_t array_hash =
- static_cast<uint32_t>(reinterpret_cast<uintptr_t>(array)) >> 2;
+ static_cast<uint32_t>(reinterpret_cast<uintptr_t>(array))
+ >> kPointerSizeLog2;
uint32_t name_hash =
- static_cast<uint32_t>(reinterpret_cast<uintptr_t>(name)) >> 2;
+ static_cast<uint32_t>(reinterpret_cast<uintptr_t>(name))
+ >> kPointerSizeLog2;
return (array_hash ^ name_hash) % kLength;
}