|
127 | 127 | #include "src/tracing/trace-event.h" |
128 | 128 | #include "src/utils/utils-inl.h" |
129 | 129 | #include "src/utils/utils.h" |
130 | | -#include "third_party/rapidhash-v8/secret.h" |
131 | 130 |
|
132 | 131 | #ifdef V8_ENABLE_CONSERVATIVE_STACK_SCANNING |
133 | 132 | #include "src/heap/conservative-stack-visitor-inl.h" |
@@ -5916,31 +5915,6 @@ void Heap::SetUpSpaces(LinearAllocationArea& new_allocation_info, |
5916 | 5915 | } |
5917 | 5916 | } |
5918 | 5917 |
|
5919 | | -void Heap::InitializeHashSeed() { |
5920 | | - DCHECK(!deserialization_complete_); |
5921 | | - uint64_t new_hash_seed; |
5922 | | - if (v8_flags.hash_seed == 0) { |
5923 | | - int64_t rnd = isolate()->random_number_generator()->NextInt64(); |
5924 | | - new_hash_seed = static_cast<uint64_t>(rnd); |
5925 | | - } else { |
5926 | | - new_hash_seed = static_cast<uint64_t>(v8_flags.hash_seed); |
5927 | | - } |
5928 | | - |
5929 | | - Tagged<ByteArray> hash_seed = ReadOnlyRoots(this).hash_seed(); |
5930 | | - |
5931 | | - MemCopy(hash_seed->begin(), reinterpret_cast<uint8_t*>(&new_hash_seed), |
5932 | | - kInt64Size); |
5933 | | - |
5934 | | -#if V8_USE_DEFAULT_HASHER_SECRET |
5935 | | - MemCopy(hash_seed->begin() + kInt64Size, |
5936 | | - reinterpret_cast<const uint8_t*>(RAPIDHASH_DEFAULT_SECRET), |
5937 | | - kInt64Size * 3); |
5938 | | -#else |
5939 | | - rapidhash_make_secret(new_hash_seed, reinterpret_cast<uint64_t*>( |
5940 | | - hash_seed->begin() + kInt64Size)); |
5941 | | -#endif // V8_USE_DEFAULT_HASHER_SECRET |
5942 | | -} |
5943 | | - |
5944 | 5918 | std::shared_ptr<v8::TaskRunner> Heap::GetForegroundTaskRunner( |
5945 | 5919 | TaskPriority priority) const { |
5946 | 5920 | return V8::GetCurrentPlatform()->GetForegroundTaskRunner( |
|
0 commit comments