Index: src/profile-generator.cc |
=================================================================== |
--- src/profile-generator.cc (revision 10379) |
+++ src/profile-generator.cc (working copy) |
@@ -111,7 +111,7 @@ |
OS::StrNCpy(dst, src, len); |
dst[len] = '\0'; |
uint32_t hash = |
- HashSequentialString(dst.start(), len, HEAP->StringHashSeed()); |
+ HashSequentialString(dst.start(), len, HEAP->HashSeed()); |
return AddOrDisposeString(dst.start(), hash); |
} |
@@ -145,7 +145,7 @@ |
return format; |
} |
uint32_t hash = HashSequentialString( |
- str.start(), len, HEAP->StringHashSeed()); |
+ str.start(), len, HEAP->HashSeed()); |
return AddOrDisposeString(str.start(), hash); |
} |
@@ -178,18 +178,21 @@ |
uint32_t CodeEntry::GetCallUid() const { |
- uint32_t hash = ComputeIntegerHash(tag_); |
+ uint32_t hash = ComputeIntegerHash(tag_, v8::internal::kZeroHashSeed); |
if (shared_id_ != 0) { |
- hash ^= ComputeIntegerHash( |
- static_cast<uint32_t>(shared_id_)); |
+ hash ^= ComputeIntegerHash(static_cast<uint32_t>(shared_id_), |
+ v8::internal::kZeroHashSeed); |
} else { |
hash ^= ComputeIntegerHash( |
- static_cast<uint32_t>(reinterpret_cast<uintptr_t>(name_prefix_))); |
+ static_cast<uint32_t>(reinterpret_cast<uintptr_t>(name_prefix_)), |
+ v8::internal::kZeroHashSeed); |
hash ^= ComputeIntegerHash( |
- static_cast<uint32_t>(reinterpret_cast<uintptr_t>(name_))); |
+ static_cast<uint32_t>(reinterpret_cast<uintptr_t>(name_)), |
+ v8::internal::kZeroHashSeed); |
hash ^= ComputeIntegerHash( |
- static_cast<uint32_t>(reinterpret_cast<uintptr_t>(resource_name_))); |
- hash ^= ComputeIntegerHash(line_number_); |
+ static_cast<uint32_t>(reinterpret_cast<uintptr_t>(resource_name_)), |
+ v8::internal::kZeroHashSeed); |
+ hash ^= ComputeIntegerHash(line_number_, v8::internal::kZeroHashSeed); |
} |
return hash; |
} |
@@ -1466,10 +1469,11 @@ |
const char* label = info->GetLabel(); |
id ^= HashSequentialString(label, |
static_cast<int>(strlen(label)), |
- HEAP->StringHashSeed()); |
+ HEAP->HashSeed()); |
intptr_t element_count = info->GetElementCount(); |
if (element_count != -1) |
- id ^= ComputeIntegerHash(static_cast<uint32_t>(element_count)); |
+ id ^= ComputeIntegerHash(static_cast<uint32_t>(element_count), |
+ v8::internal::kZeroHashSeed); |
return id << 1; |
} |