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

Public Member Functions

 TypeParameterDeserializationCluster (bool is_canonical, bool is_root_unit)
 
 ~TypeParameterDeserializationCluster ()
 
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< CanonicalTypeParameterSet >
 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< CanonicalTypeParameterSet >
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< CanonicalTypeParameterSet >
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 5147 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ TypeParameterDeserializationCluster()

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

Definition at line 5150 of file app_snapshot.cc.

5153 is_root_unit,
5154 "TypeParameter") {}
CanonicalSetDeserializationCluster(bool is_canonical, bool is_root_unit, const char *name)

◆ ~TypeParameterDeserializationCluster()

dart::TypeParameterDeserializationCluster::~TypeParameterDeserializationCluster ( )
inline

Definition at line 5155 of file app_snapshot.cc.

5155{}

Member Function Documentation

◆ PostLoad()

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

Reimplemented from dart::DeserializationCluster.

Definition at line 5178 of file app_snapshot.cc.

5178 {
5179 if (!table_.IsNull()) {
5180 auto object_store = d->isolate_group()->object_store();
5182 d, refs, Array::Handle(object_store->canonical_type_parameters()));
5183 object_store->set_canonical_type_parameters(table_);
5184 } else if (!is_root_unit_ && is_canonical()) {
5185 TypeParameter& type_param = TypeParameter::Handle(d->zone());
5186 for (intptr_t i = start_index_, n = stop_index_; i < n; i++) {
5187 type_param ^= refs.At(i);
5188 type_param ^= type_param.Canonicalize(d->thread());
5189 refs.SetAt(i, type_param);
5190 }
5191 }
5192
5193 TypeParameter& type_param = TypeParameter::Handle(d->zone());
5194 Code& stub = Code::Handle(d->zone());
5195
5196 if (Snapshot::IncludesCode(d->kind())) {
5197 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
5198 type_param ^= refs.At(id);
5199 type_param.UpdateTypeTestingStubEntryPoint();
5200 }
5201 } else {
5202 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
5203 type_param ^= refs.At(id);
5205 type_param.InitializeTypeTestingStubNonAtomic(stub);
5206 }
5207 }
5208 }
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::TypeParameterDeserializationCluster::ReadAlloc ( Deserializer d)
inlineoverridevirtual

Implements dart::DeserializationCluster.

Definition at line 5157 of file app_snapshot.cc.

5157 {
5160 }
void ReadAllocFixedSize(Deserializer *deserializer, intptr_t instance_size)
static intptr_t InstanceSize()
Definition: object.h:9877

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 5162 of file app_snapshot.cc.

5162 {
5163 Deserializer::Local d(d_);
5164
5165 const bool mark_canonical = is_root_unit_ && is_canonical();
5166 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
5167 TypeParameterPtr type = static_cast<TypeParameterPtr>(d.Ref(id));
5168 Deserializer::InitializeHeader(type, kTypeParameterCid,
5170 mark_canonical);
5171 d.ReadFromTo(type);
5172 type->untag()->base_ = d.Read<uint16_t>();
5173 type->untag()->index_ = d.Read<uint16_t>();
5174 type->untag()->set_flags(d.Read<uint8_t>());
5175 }
5176 }
GLenum type
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: