Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::RODataDeserializationCluster Class Reference
Inheritance diagram for dart::RODataDeserializationCluster:
dart::CanonicalSetDeserializationCluster< CanonicalStringSet > dart::DeserializationCluster dart::ZoneAllocated

Public Member Functions

 RODataDeserializationCluster (intptr_t cid, bool is_canonical, bool is_root_unit)
 
 ~RODataDeserializationCluster ()
 
void ReadAlloc (Deserializer *d) override
 
void ReadFill (Deserializer *d_) override
 
void PostLoad (Deserializer *d, const Array &refs) override
 
- Public Member Functions inherited from dart::CanonicalSetDeserializationCluster< CanonicalStringSet >
 CanonicalSetDeserializationCluster (bool is_canonical, bool is_root_unit, const char *name)
 
void BuildCanonicalSetFromLayout (Deserializer *d)
 
- Public Member Functions inherited from dart::DeserializationCluster
 DeserializationCluster (const char *name, bool is_canonical=false, bool is_immutable=false)
 
virtual ~DeserializationCluster ()
 
virtual void ReadAlloc (Deserializer *deserializer)=0
 
virtual void ReadFill (Deserializer *deserializer)=0
 
virtual void PostLoad (Deserializer *deserializer, const Array &refs)
 
const char * name () const
 
bool is_canonical () const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Additional Inherited Members

- Protected Member Functions inherited from dart::CanonicalSetDeserializationCluster< CanonicalStringSet >
void VerifyCanonicalSet (Deserializer *d, const Array &refs, const typename SetType::ArrayHandle &current_table)
 
- Protected Member Functions inherited from dart::DeserializationCluster
void ReadAllocFixedSize (Deserializer *deserializer, intptr_t instance_size)
 
- Protected Attributes inherited from dart::CanonicalSetDeserializationCluster< CanonicalStringSet >
const bool is_root_unit_
 
intptr_t first_element_
 
SetType::ArrayHandle & table_
 
- Protected Attributes inherited from dart::DeserializationCluster
const char *const name_
 
const bool is_canonical_
 
const bool is_immutable_
 
intptr_t start_index_
 
intptr_t stop_index_
 

Detailed Description

Definition at line 3684 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ RODataDeserializationCluster()

dart::RODataDeserializationCluster::RODataDeserializationCluster ( intptr_t  cid,
bool  is_canonical,
bool  is_root_unit 
)
inlineexplicit

Definition at line 3687 of file app_snapshot.cc.

3691 is_root_unit,
3692 "ROData"),
3693 cid_(cid) {}
CanonicalSetDeserializationCluster(bool is_canonical, bool is_root_unit, const char *name)
const intptr_t cid

◆ ~RODataDeserializationCluster()

dart::RODataDeserializationCluster::~RODataDeserializationCluster ( )
inline

Definition at line 3694 of file app_snapshot.cc.

3694{}

Member Function Documentation

◆ PostLoad()

void dart::RODataDeserializationCluster::PostLoad ( Deserializer d,
const Array refs 
)
inlineoverridevirtual

Reimplemented from dart::DeserializationCluster.

Definition at line 3717 of file app_snapshot.cc.

3717 {
3718 if (!table_.IsNull()) {
3719 auto object_store = d->isolate_group()->object_store();
3720 VerifyCanonicalSet(d, refs,
3721 WeakArray::Handle(object_store->symbol_table()));
3722 object_store->set_symbol_table(table_);
3723 if (d->isolate_group() == Dart::vm_isolate_group()) {
3724 Symbols::InitFromSnapshot(d->isolate_group());
3725 }
3726 } else if (!is_root_unit_ && is_canonical()) {
3727 FATAL("Cannot recanonicalize RO objects.");
3728 }
3729 }
void VerifyCanonicalSet(Deserializer *d, const Array &refs, const typename SetType::ArrayHandle &current_table)
static IsolateGroup * vm_isolate_group()
Definition: dart.h:69
static Object & Handle()
Definition: object.h:407
static void InitFromSnapshot(IsolateGroup *isolate_group)
Definition: symbols.cc:127
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
#define FATAL(error)

◆ ReadAlloc()

void dart::RODataDeserializationCluster::ReadAlloc ( Deserializer d)
inlineoverridevirtual

Implements dart::DeserializationCluster.

Definition at line 3696 of file app_snapshot.cc.

3696 {
3697 start_index_ = d->next_index();
3698 intptr_t count = d->ReadUnsigned();
3699 uint32_t running_offset = 0;
3700 for (intptr_t i = 0; i < count; i++) {
3701 running_offset += d->ReadUnsigned() << kObjectAlignmentLog2;
3702 ObjectPtr object = d->GetObjectAt(running_offset);
3703 d->AssignRef(object);
3704 }
3705 stop_index_ = d->next_index();
3706 if (cid_ == kStringCid) {
3708 }
3709 }
int count
Definition: FontMgrTest.cpp:50
static constexpr intptr_t kObjectAlignmentLog2

◆ ReadFill()

void dart::RODataDeserializationCluster::ReadFill ( Deserializer d_)
inlineoverridevirtual

Implements dart::DeserializationCluster.

Definition at line 3711 of file app_snapshot.cc.

3711 {
3712 Deserializer::Local d(d_);
3713
3714 // No-op.
3715 }

The documentation for this class was generated from the following file: