Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::RecordTypeDeserializationCluster Class Reference
Inheritance diagram for dart::RecordTypeDeserializationCluster:
dart::CanonicalSetDeserializationCluster< CanonicalRecordTypeSet > dart::DeserializationCluster dart::ZoneAllocated

Public Member Functions

 RecordTypeDeserializationCluster (bool is_canonical, bool is_root_unit)
 
 ~RecordTypeDeserializationCluster ()
 
void ReadAlloc (Deserializer *d) override
 
void ReadFill (Deserializer *d_) override
 
void PostLoad (Deserializer *d, const Array &refs) override
 
- Public Member Functions inherited from dart::CanonicalSetDeserializationCluster< CanonicalRecordTypeSet >
 CanonicalSetDeserializationCluster (bool is_canonical, bool is_root_unit, const char *name)
 
void BuildCanonicalSetFromLayout (Deserializer *d)
 
- 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::CanonicalSetDeserializationCluster< CanonicalRecordTypeSet >
void VerifyCanonicalSet (Deserializer *d, const Array &refs, const typename SetType::ArrayHandle &current_table)
 
- Protected Member Functions inherited from dart::DeserializationCluster
void ReadAllocFixedSize (Deserializer *deserializer, intptr_t instance_size)
 
- Protected Attributes inherited from dart::CanonicalSetDeserializationCluster< CanonicalRecordTypeSet >
const bool is_root_unit_
 
intptr_t first_element_
 
SetType::ArrayHandle & table_
 
- 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 5034 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ RecordTypeDeserializationCluster()

dart::RecordTypeDeserializationCluster::RecordTypeDeserializationCluster ( bool  is_canonical,
bool  is_root_unit 
)
inline

Definition at line 5037 of file app_snapshot.cc.

5039 is_root_unit,
5040 "RecordType") {}
CanonicalSetDeserializationCluster(bool is_canonical, bool is_root_unit, const char *name)

◆ ~RecordTypeDeserializationCluster()

dart::RecordTypeDeserializationCluster::~RecordTypeDeserializationCluster ( )
inline

Definition at line 5041 of file app_snapshot.cc.

5041{}

Member Function Documentation

◆ PostLoad()

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

Reimplemented from dart::DeserializationCluster.

Definition at line 5061 of file app_snapshot.cc.

5061 {
5062 if (!table_.IsNull()) {
5063 auto object_store = d->isolate_group()->object_store();
5064 VerifyCanonicalSet(d, refs,
5065 Array::Handle(object_store->canonical_record_types()));
5066 object_store->set_canonical_record_types(table_);
5067 } else if (!is_root_unit_ && is_canonical()) {
5068 AbstractType& type = AbstractType::Handle(d->zone());
5069 for (intptr_t i = start_index_, n = stop_index_; i < n; i++) {
5070 type ^= refs.At(i);
5071 type = type.Canonicalize(d->thread());
5072 refs.SetAt(i, type);
5073 }
5074 }
5075
5076 RecordType& type = RecordType::Handle(d->zone());
5077 Code& stub = Code::Handle(d->zone());
5078
5079 if (Snapshot::IncludesCode(d->kind())) {
5080 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
5081 type ^= refs.At(id);
5082 type.UpdateTypeTestingStubEntryPoint();
5083 }
5084 } else {
5085 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
5086 type ^= refs.At(id);
5088 type.InitializeTypeTestingStubNonAtomic(stub);
5089 }
5090 }
5091 }
GLenum type
void VerifyCanonicalSet(Deserializer *d, const Array &refs, const typename SetType::ArrayHandle &current_table)
static Object & Handle()
Definition: object.h:407
static bool IncludesCode(Kind kind)
Definition: snapshot.h:67
static CodePtr DefaultCodeForType(const AbstractType &type, bool lazy_specialize=true)
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19

◆ ReadAlloc()

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

Implements dart::DeserializationCluster.

Definition at line 5043 of file app_snapshot.cc.

5043 {
5046 }
void ReadAllocFixedSize(Deserializer *deserializer, intptr_t instance_size)
static intptr_t InstanceSize()
Definition: object.h:11402

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 5048 of file app_snapshot.cc.

5048 {
5049 Deserializer::Local d(d_);
5050
5051 const bool mark_canonical = is_root_unit_ && is_canonical();
5052 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
5053 RecordTypePtr type = static_cast<RecordTypePtr>(d.Ref(id));
5055 type, kRecordTypeCid, RecordType::InstanceSize(), mark_canonical);
5056 d.ReadFromTo(type);
5057 type->untag()->set_flags(d.Read<uint8_t>());
5058 }
5059 }
static void InitializeHeader(ObjectPtr raw, intptr_t cid, intptr_t size, bool is_canonical=false)

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