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

Public Member Functions

 TypeMessageSerializationCluster (bool is_canonical)
 
 ~TypeMessageSerializationCluster ()
 
void Trace (MessageSerializer *s, Object *object)
 
void WriteNodes (MessageSerializer *s)
 
void WriteEdges (MessageSerializer *s)
 
- Public Member Functions inherited from dart::MessageSerializationCluster
 MessageSerializationCluster (const char *name, MessagePhase phase, intptr_t cid, bool is_canonical=false)
 
virtual ~MessageSerializationCluster ()
 
virtual void Trace (MessageSerializer *s, Object *object)=0
 
virtual void WriteNodes (MessageSerializer *s)=0
 
virtual void WriteEdges (MessageSerializer *s)
 
virtual void TraceApi (ApiMessageSerializer *s, Dart_CObject *object)
 
virtual void WriteNodesApi (ApiMessageSerializer *s)
 
virtual void WriteEdgesApi (ApiMessageSerializer *s)
 
const char * name () const
 
MessagePhase phase () const
 
intptr_t cid () 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::MessageSerializationCluster
 DISALLOW_COPY_AND_ASSIGN (MessageSerializationCluster)
 
- Protected Attributes inherited from dart::MessageSerializationCluster
const char *const name_
 
const MessagePhase phase_
 
const intptr_t cid_
 
const bool is_canonical_
 

Detailed Description

Definition at line 707 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ TypeMessageSerializationCluster()

dart::TypeMessageSerializationCluster::TypeMessageSerializationCluster ( bool  is_canonical)
inlineexplicit

Definition at line 709 of file message_snapshot.cc.

712 kTypeCid,
713 is_canonical) {}
MessageSerializationCluster(const char *name, MessagePhase phase, intptr_t cid, bool is_canonical=false)

◆ ~TypeMessageSerializationCluster()

dart::TypeMessageSerializationCluster::~TypeMessageSerializationCluster ( )
inline

Definition at line 714 of file message_snapshot.cc.

714{}

Member Function Documentation

◆ Trace()

void dart::TypeMessageSerializationCluster::Trace ( MessageSerializer s,
Object object 
)
inlinevirtual

Implements dart::MessageSerializationCluster.

Definition at line 716 of file message_snapshot.cc.

716 {
717 Type* type = static_cast<Type*>(object);
718
719 if (!type->IsTypeClassAllowedBySpawnUri()) {
720 s->IllegalObject(*object, "is a Type");
721 }
722
723 objects_.Add(type);
724
725 s->Push(type->type_class());
726 s->Push(type->arguments());
727 }
GLenum type
struct MyStruct s

◆ WriteEdges()

void dart::TypeMessageSerializationCluster::WriteEdges ( MessageSerializer s)
inlinevirtual

Reimplemented from dart::MessageSerializationCluster.

Definition at line 738 of file message_snapshot.cc.

738 {
739 const intptr_t count = objects_.length();
740 for (intptr_t i = 0; i < count; i++) {
741 Type* type = objects_[i];
742 s->WriteRef(type->type_class());
743 s->WriteRef(type->arguments());
744 s->Write<uint8_t>(static_cast<uint8_t>(type->nullability()));
745 }
746 }
int count
Definition: FontMgrTest.cpp:50

◆ WriteNodes()

void dart::TypeMessageSerializationCluster::WriteNodes ( MessageSerializer s)
inlinevirtual

Implements dart::MessageSerializationCluster.

Definition at line 729 of file message_snapshot.cc.

729 {
730 const intptr_t count = objects_.length();
731 s->WriteUnsigned(count);
732 for (intptr_t i = 0; i < count; i++) {
733 Type* type = objects_[i];
734 s->AssignRef(type);
735 }
736 }

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