Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::LoadingUnitDeserializationCluster Class Reference
Inheritance diagram for dart::LoadingUnitDeserializationCluster:
dart::DeserializationCluster dart::ZoneAllocated

Public Member Functions

 LoadingUnitDeserializationCluster ()
 
 ~LoadingUnitDeserializationCluster ()
 
void ReadAlloc (Deserializer *d) override
 
void ReadFill (Deserializer *d_) override
 
- 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::DeserializationCluster
void ReadAllocFixedSize (Deserializer *deserializer, intptr_t instance_size)
 
- 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 4293 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ LoadingUnitDeserializationCluster()

dart::LoadingUnitDeserializationCluster::LoadingUnitDeserializationCluster ( )
inline

Definition at line 4295 of file app_snapshot.cc.

4295: DeserializationCluster("LoadingUnit") {}
DeserializationCluster(const char *name, bool is_canonical=false, bool is_immutable=false)

◆ ~LoadingUnitDeserializationCluster()

dart::LoadingUnitDeserializationCluster::~LoadingUnitDeserializationCluster ( )
inline

Definition at line 4296 of file app_snapshot.cc.

4296{}

Member Function Documentation

◆ ReadAlloc()

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

Implements dart::DeserializationCluster.

Definition at line 4298 of file app_snapshot.cc.

4298 {
4300 }
void ReadAllocFixedSize(Deserializer *deserializer, intptr_t instance_size)
static intptr_t InstanceSize()
Definition: object.h:7973
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 4302 of file app_snapshot.cc.

4302 {
4303 Deserializer::Local d(d_);
4304
4305 ASSERT(!is_canonical()); // Never canonical.
4306 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
4307 LoadingUnitPtr unit = static_cast<LoadingUnitPtr>(d.Ref(id));
4308 Deserializer::InitializeHeader(unit, kLoadingUnitCid,
4310 unit->untag()->parent_ = static_cast<LoadingUnitPtr>(d.ReadRef());
4311 unit->untag()->base_objects_ = Array::null();
4312 unit->untag()->instructions_image_ = nullptr;
4313 unit->untag()->packed_fields_ =
4315 UntaggedLoadingUnit::kNotLoaded) |
4316 UntaggedLoadingUnit::IdBits::encode(d.Read<intptr_t>());
4317 }
4318 }
static constexpr S encode(T value)
Definition: bitfield.h:165
static void InitializeHeader(ObjectPtr raw, intptr_t cid, intptr_t size, bool is_canonical=false)
static ObjectPtr null()
Definition: object.h:433
#define ASSERT(E)

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