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

Public Member Functions

 ClosureDataDeserializationCluster ()
 
 ~ClosureDataDeserializationCluster ()
 
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 2039 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ ClosureDataDeserializationCluster()

dart::ClosureDataDeserializationCluster::ClosureDataDeserializationCluster ( )
inline

Definition at line 2041 of file app_snapshot.cc.

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

◆ ~ClosureDataDeserializationCluster()

dart::ClosureDataDeserializationCluster::~ClosureDataDeserializationCluster ( )
inline

Definition at line 2042 of file app_snapshot.cc.

2042{}

Member Function Documentation

◆ ReadAlloc()

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

Implements dart::DeserializationCluster.

Definition at line 2044 of file app_snapshot.cc.

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

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 2048 of file app_snapshot.cc.

2048 {
2049 Deserializer::Local d(d_);
2050
2051 ASSERT(!is_canonical()); // Never canonical.
2052 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
2053 ClosureDataPtr data = static_cast<ClosureDataPtr>(d.Ref(id));
2054 Deserializer::InitializeHeader(data, kClosureDataCid,
2056 if (d_->kind() == Snapshot::kFullAOT) {
2057 data->untag()->context_scope_ = ContextScope::null();
2058 } else {
2059 data->untag()->context_scope_ =
2060 static_cast<ContextScopePtr>(d.ReadRef());
2061 }
2062 data->untag()->parent_function_ = static_cast<FunctionPtr>(d.ReadRef());
2063 data->untag()->closure_ = static_cast<ClosurePtr>(d.ReadRef());
2064 data->untag()->packed_fields_ = d.ReadUnsigned<uint32_t>();
2065 }
2066 }
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)
static int8_t data[kExtLength]

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