diff options
Diffstat (limited to 'deps/v8/src/objects/string-forwarding-table-inl.h')
-rw-r--r-- | deps/v8/src/objects/string-forwarding-table-inl.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/deps/v8/src/objects/string-forwarding-table-inl.h b/deps/v8/src/objects/string-forwarding-table-inl.h index f5e087c55b..b50104bd09 100644 --- a/deps/v8/src/objects/string-forwarding-table-inl.h +++ b/deps/v8/src/objects/string-forwarding-table-inl.h @@ -130,7 +130,7 @@ uint32_t StringForwardingTable::Record::raw_hash( Object hash_or_string = ForwardStringObjectOrHash(cage_base); uint32_t raw_hash; if (hash_or_string.IsHeapObject()) { - raw_hash = String::cast(hash_or_string).raw_hash_field(); + raw_hash = String::cast(hash_or_string).RawHash(); } else { raw_hash = static_cast<uint32_t>(hash_or_string.ptr()); } @@ -203,9 +203,8 @@ bool StringForwardingTable::Record::TryUpdateExternalResource(Address address) { void StringForwardingTable::Record::DisposeExternalResource() { bool is_one_byte; auto resource = external_resource(&is_one_byte); - if (resource != nullptr) { - resource->Dispose(); - } + DCHECK_NOT_NULL(resource); + resource->Dispose(); } void StringForwardingTable::Record::DisposeUnusedExternalResource( @@ -248,8 +247,10 @@ class StringForwardingTable::Block { return &elements_[index]; } - void UpdateAfterEvacuation(PtrComprCageBase cage_base); - void UpdateAfterEvacuation(PtrComprCageBase cage_base, int up_to_index); + void UpdateAfterYoungEvacuation(PtrComprCageBase cage_base); + void UpdateAfterYoungEvacuation(PtrComprCageBase cage_base, int up_to_index); + void UpdateAfterFullEvacuation(PtrComprCageBase cage_base); + void UpdateAfterFullEvacuation(PtrComprCageBase cage_base, int up_to_index); private: const int capacity_; |