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

Public Member Functions

 MintDeserializationCluster (bool is_canonical, bool is_root_unit)
 
 ~MintDeserializationCluster ()
 
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::AbstractInstanceDeserializationCluster
 AbstractInstanceDeserializationCluster (const char *name, bool is_canonical, bool is_root_unit)
 
- Protected Member Functions inherited from dart::DeserializationCluster
void ReadAllocFixedSize (Deserializer *deserializer, intptr_t instance_size)
 
- Protected Attributes inherited from dart::AbstractInstanceDeserializationCluster
const bool is_root_unit_
 
- 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 5345 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ MintDeserializationCluster()

dart::MintDeserializationCluster::MintDeserializationCluster ( bool  is_canonical,
bool  is_root_unit 
)
inlineexplicit

Definition at line 5348 of file app_snapshot.cc.

5351 is_root_unit) {}
AbstractInstanceDeserializationCluster(const char *name, bool is_canonical, bool is_root_unit)

◆ ~MintDeserializationCluster()

dart::MintDeserializationCluster::~MintDeserializationCluster ( )
inline

Definition at line 5352 of file app_snapshot.cc.

5352{}

Member Function Documentation

◆ ReadAlloc()

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

Implements dart::DeserializationCluster.

Definition at line 5354 of file app_snapshot.cc.

5354 {
5355 start_index_ = d->next_index();
5356 const intptr_t count = d->ReadUnsigned();
5357 const bool mark_canonical = is_canonical();
5358 for (intptr_t i = 0; i < count; i++) {
5359 int64_t value = d->Read<int64_t>();
5360 if (Smi::IsValid(value)) {
5361 d->AssignRef(Smi::New(value));
5362 } else {
5363 MintPtr mint = static_cast<MintPtr>(d->Allocate(Mint::InstanceSize()));
5365 mark_canonical);
5366 mint->untag()->value_ = value;
5367 d->AssignRef(mint);
5368 }
5369 }
5370 stop_index_ = d->next_index();
5371 }
int count
Definition: FontMgrTest.cpp:50
static void InitializeHeader(ObjectPtr raw, intptr_t cid, intptr_t size, bool is_canonical=false)
static intptr_t InstanceSize()
Definition: object.h:10090
static SmiPtr New(intptr_t value)
Definition: object.h:10006
static bool IsValid(int64_t value)
Definition: object.h:10026
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
uint8_t value

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 5373 of file app_snapshot.cc.

5373{ Deserializer::Local d(d_); }

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