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

Public Member Functions

 TypeMessageDeserializationCluster (bool is_canonical)
 
 ~TypeMessageDeserializationCluster ()
 
void ReadNodes (MessageDeserializer *d)
 
void ReadEdges (MessageDeserializer *d)
 
ObjectPtr PostLoad (MessageDeserializer *d)
 
void ReadNodesApi (ApiMessageDeserializer *d)
 
void ReadEdgesApi (ApiMessageDeserializer *d)
 
- Public Member Functions inherited from dart::MessageDeserializationCluster
 MessageDeserializationCluster (const char *name, bool is_canonical=false)
 
virtual ~MessageDeserializationCluster ()
 
virtual void ReadNodes (MessageDeserializer *d)=0
 
virtual void ReadEdges (MessageDeserializer *d)
 
virtual ObjectPtr PostLoad (MessageDeserializer *d)
 
virtual void ReadNodesApi (ApiMessageDeserializer *d)
 
virtual void ReadEdgesApi (ApiMessageDeserializer *d)
 
virtual void PostLoadApi (ApiMessageDeserializer *d)
 
void ReadNodesWrapped (MessageDeserializer *d)
 
void ReadNodesWrappedApi (ApiMessageDeserializer *d)
 
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::MessageDeserializationCluster
ObjectPtr PostLoadAbstractType (MessageDeserializer *d)
 
ObjectPtr PostLoadLinkedHash (MessageDeserializer *d)
 
 DISALLOW_COPY_AND_ASSIGN (MessageDeserializationCluster)
 
- Protected Attributes inherited from dart::MessageDeserializationCluster
const char *const name_
 
const bool is_canonical_
 
intptr_t start_index_
 
intptr_t stop_index_
 

Detailed Description

Definition at line 752 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ TypeMessageDeserializationCluster()

dart::TypeMessageDeserializationCluster::TypeMessageDeserializationCluster ( bool  is_canonical)
inlineexplicit

Definition at line 754 of file message_snapshot.cc.

MessageDeserializationCluster(const char *name, bool is_canonical=false)

◆ ~TypeMessageDeserializationCluster()

dart::TypeMessageDeserializationCluster::~TypeMessageDeserializationCluster ( )
inline

Definition at line 756 of file message_snapshot.cc.

756{}

Member Function Documentation

◆ PostLoad()

ObjectPtr dart::TypeMessageDeserializationCluster::PostLoad ( MessageDeserializer d)
inlinevirtual

Reimplemented from dart::MessageDeserializationCluster.

Definition at line 781 of file message_snapshot.cc.

781{ return PostLoadAbstractType(d); }
ObjectPtr PostLoadAbstractType(MessageDeserializer *d)
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19

◆ ReadEdges()

void dart::TypeMessageDeserializationCluster::ReadEdges ( MessageDeserializer d)
inlinevirtual

Reimplemented from dart::MessageDeserializationCluster.

Definition at line 765 of file message_snapshot.cc.

765 {
766 Class& cls = Class::Handle(d->zone());
767 Type& type = Type::Handle(d->zone());
768 TypeArguments& type_args = TypeArguments::Handle(d->zone());
769 for (intptr_t id = start_index_; id < stop_index_; id++) {
770 type ^= d->Ref(id);
771 cls ^= d->ReadRef();
772 type.set_type_class(cls);
773 type_args ^= d->ReadRef();
774 type.set_arguments(type_args);
775 type.untag()->set_hash(Smi::New(0));
776 type.set_nullability(static_cast<Nullability>(d->Read<uint8_t>()));
777 type.SetIsFinalized();
778 }
779 }
GLenum type
static Object & Handle()
Definition: object.h:407
static SmiPtr New(intptr_t value)
Definition: object.h:10006
Nullability
Definition: object.h:1112

◆ ReadEdgesApi()

void dart::TypeMessageDeserializationCluster::ReadEdgesApi ( ApiMessageDeserializer d)
inlinevirtual

Reimplemented from dart::MessageDeserializationCluster.

Definition at line 790 of file message_snapshot.cc.

790 {
791 for (intptr_t id = start_index_; id < stop_index_; id++) {
792 d->ReadRef(); // Class.
793 d->ReadRef(); // Type arguments.
794 d->Read<uint8_t>(); // Nullability.
795 }
796 }

◆ ReadNodes()

void dart::TypeMessageDeserializationCluster::ReadNodes ( MessageDeserializer d)
inlinevirtual

Implements dart::MessageDeserializationCluster.

Definition at line 758 of file message_snapshot.cc.

758 {
759 const intptr_t count = d->ReadUnsigned();
760 for (intptr_t i = 0; i < count; i++) {
761 d->AssignRef(Type::New());
762 }
763 }
int count
Definition: FontMgrTest.cpp:50
static TypePtr New(const Class &clazz, const TypeArguments &arguments, Nullability nullability=Nullability::kNonNullable, Heap::Space space=Heap::kOld)

◆ ReadNodesApi()

void dart::TypeMessageDeserializationCluster::ReadNodesApi ( ApiMessageDeserializer d)
inlinevirtual

Reimplemented from dart::MessageDeserializationCluster.

Definition at line 783 of file message_snapshot.cc.

783 {
784 intptr_t count = d->ReadUnsigned();
785 for (intptr_t i = 0; i < count; i++) {
786 d->AssignRef(nullptr);
787 }
788 }

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