18 first_root_to_be_serialized_(first_root_to_be_serialized),
19 object_cache_index_map_(isolate->
heap()),
20 can_be_rehashed_(true) {
21 for (
size_t i = 0; i < static_cast<size_t>(first_root_to_be_serialized);
52 size_t root_index = current - roots_table.
begin();
62 if (!obj->NeedsRehashing(
cage_base()))
return;
63 if (obj->CanBeRehashed(
cage_base()))
return;
RootsTable & roots_table()
bool LookupOrInsert(Tagged< HeapObject > obj, int *index_out)
RootsSerializer(Isolate *isolate, Snapshot::SerializerFlags flags, RootIndex first_root_to_be_serialized)
std::bitset< RootsTable::kEntriesCount > root_has_been_serialized_
const RootIndex first_root_to_be_serialized_
void CheckRehashability(Tagged< HeapObject > obj)
void Synchronize(VisitorSynchronization::SyncTag tag) override
ObjectCacheIndexMap object_cache_index_map_
void VisitRootPointers(Root root, const char *description, FullObjectSlot start, FullObjectSlot end) override
int SerializeInObjectCache(Handle< HeapObject > object)
PtrComprCageBase cage_base() const
Isolate * isolate() const
void VisitRootPointers(Root root, const char *description, FullObjectSlot start, FullObjectSlot end) override
void SerializeRootObject(FullObjectSlot slot)
void SerializeObject(Handle< HeapObject > o, SlotType slot_type)
void Put(uint8_t b, const char *description)