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

Public Member Functions

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

Constructor & Destructor Documentation

◆ ContextScopeDeserializationCluster()

dart::ContextScopeDeserializationCluster::ContextScopeDeserializationCluster ( )
inline

Definition at line 3964 of file app_snapshot.cc.

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

◆ ~ContextScopeDeserializationCluster()

dart::ContextScopeDeserializationCluster::~ContextScopeDeserializationCluster ( )
inline

Definition at line 3966 of file app_snapshot.cc.

3966{}

Member Function Documentation

◆ ReadAlloc()

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

Implements dart::DeserializationCluster.

Definition at line 3968 of file app_snapshot.cc.

3968 {
3969 start_index_ = d->next_index();
3970 const intptr_t count = d->ReadUnsigned();
3971 for (intptr_t i = 0; i < count; i++) {
3972 const intptr_t length = d->ReadUnsigned();
3973 d->AssignRef(d->Allocate(ContextScope::InstanceSize(length)));
3974 }
3975 stop_index_ = d->next_index();
3976 }
int count
Definition: FontMgrTest.cpp:50
static intptr_t InstanceSize()
Definition: object.h:7535
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
size_t length

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 3978 of file app_snapshot.cc.

3978 {
3979 Deserializer::Local d(d_);
3980
3981 ASSERT(!is_canonical()); // Never canonical.
3982 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
3983 ContextScopePtr scope = static_cast<ContextScopePtr>(d.Ref(id));
3984 const intptr_t length = d.ReadUnsigned();
3985 Deserializer::InitializeHeader(scope, kContextScopeCid,
3987 scope->untag()->num_variables_ = length;
3988 scope->untag()->is_implicit_ = d.Read<bool>();
3989 d.ReadFromTo(scope, length);
3990 }
3991 }
static void InitializeHeader(ObjectPtr raw, intptr_t cid, intptr_t size, bool is_canonical=false)
#define ASSERT(E)

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