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

Public Member Functions

 KernelProgramInfoDeserializationCluster ()
 
 ~KernelProgramInfoDeserializationCluster ()
 
void ReadAlloc (Deserializer *d) override
 
void ReadFill (Deserializer *d_) override
 
void PostLoad (Deserializer *d, const Array &refs) 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 2568 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ KernelProgramInfoDeserializationCluster()

dart::KernelProgramInfoDeserializationCluster::KernelProgramInfoDeserializationCluster ( )
inline

Definition at line 2570 of file app_snapshot.cc.

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

◆ ~KernelProgramInfoDeserializationCluster()

dart::KernelProgramInfoDeserializationCluster::~KernelProgramInfoDeserializationCluster ( )
inline

Definition at line 2572 of file app_snapshot.cc.

2572{}

Member Function Documentation

◆ PostLoad()

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

Reimplemented from dart::DeserializationCluster.

Definition at line 2590 of file app_snapshot.cc.

2590 {
2591 Array& array = Array::Handle(d->zone());
2592 KernelProgramInfo& info = KernelProgramInfo::Handle(d->zone());
2593 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
2594 info ^= refs.At(id);
2595 array = HashTables::New<UnorderedHashMap<SmiTraits>>(16, Heap::kOld);
2596 info.set_libraries_cache(array);
2597 array = HashTables::New<UnorderedHashMap<SmiTraits>>(16, Heap::kOld);
2598 info.set_classes_cache(array);
2599 }
2600 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
@ kOld
Definition: heap.h:39
static Object & Handle()
Definition: object.h:407
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19

◆ ReadAlloc()

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

Implements dart::DeserializationCluster.

Definition at line 2574 of file app_snapshot.cc.

2574 {
2576 }
void ReadAllocFixedSize(Deserializer *deserializer, intptr_t instance_size)
static intptr_t InstanceSize()
Definition: object.h:5487

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 2578 of file app_snapshot.cc.

2578 {
2579 Deserializer::Local d(d_);
2580
2581 ASSERT(!is_canonical()); // Never canonical.
2582 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
2583 KernelProgramInfoPtr info = static_cast<KernelProgramInfoPtr>(d.Ref(id));
2584 Deserializer::InitializeHeader(info, kKernelProgramInfoCid,
2586 d.ReadFromTo(info);
2587 }
2588 }
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: