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

Public Member Functions

 FunctionTypeDeserializationCluster (bool is_canonical, bool is_root_unit)
 
 ~FunctionTypeDeserializationCluster ()
 
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< CanonicalFunctionTypeSet >
 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< CanonicalFunctionTypeSet >
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< CanonicalFunctionTypeSet >
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 4920 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ FunctionTypeDeserializationCluster()

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

Definition at line 4923 of file app_snapshot.cc.

4926 is_root_unit,
4927 "FunctionType") {}
CanonicalSetDeserializationCluster(bool is_canonical, bool is_root_unit, const char *name)

◆ ~FunctionTypeDeserializationCluster()

dart::FunctionTypeDeserializationCluster::~FunctionTypeDeserializationCluster ( )
inline

Definition at line 4928 of file app_snapshot.cc.

4928{}

Member Function Documentation

◆ PostLoad()

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

Reimplemented from dart::DeserializationCluster.

Definition at line 4950 of file app_snapshot.cc.

4950 {
4951 if (!table_.IsNull()) {
4952 auto object_store = d->isolate_group()->object_store();
4954 d, refs, Array::Handle(object_store->canonical_function_types()));
4955 object_store->set_canonical_function_types(table_);
4956 } else if (!is_root_unit_ && is_canonical()) {
4957 AbstractType& type = AbstractType::Handle(d->zone());
4958 for (intptr_t i = start_index_, n = stop_index_; i < n; i++) {
4959 type ^= refs.At(i);
4960 type = type.Canonicalize(d->thread());
4961 refs.SetAt(i, type);
4962 }
4963 }
4964
4965 FunctionType& type = FunctionType::Handle(d->zone());
4966 Code& stub = Code::Handle(d->zone());
4967
4968 if (Snapshot::IncludesCode(d->kind())) {
4969 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
4970 type ^= refs.At(id);
4971 type.UpdateTypeTestingStubEntryPoint();
4972 }
4973 } else {
4974 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
4975 type ^= refs.At(id);
4977 type.InitializeTypeTestingStubNonAtomic(stub);
4978 }
4979 }
4980 }
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::FunctionTypeDeserializationCluster::ReadAlloc ( Deserializer d)
inlineoverridevirtual

Implements dart::DeserializationCluster.

Definition at line 4930 of file app_snapshot.cc.

4930 {
4933 }
void ReadAllocFixedSize(Deserializer *deserializer, intptr_t instance_size)
static intptr_t InstanceSize()
Definition: object.h:9776

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 4935 of file app_snapshot.cc.

4935 {
4936 Deserializer::Local d(d_);
4937
4938 const bool mark_canonical = is_root_unit_ && is_canonical();
4939 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
4940 FunctionTypePtr type = static_cast<FunctionTypePtr>(d.Ref(id));
4942 type, kFunctionTypeCid, FunctionType::InstanceSize(), mark_canonical);
4943 d.ReadFromTo(type);
4944 type->untag()->set_flags(d.Read<uint8_t>());
4945 type->untag()->packed_parameter_counts_ = d.Read<uint32_t>();
4946 type->untag()->packed_type_parameter_counts_ = d.Read<uint16_t>();
4947 }
4948 }
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: