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

Public Member Functions

 MintMessageSerializationCluster (Zone *zone, bool is_canonical)
 
 ~MintMessageSerializationCluster ()
 
void Trace (MessageSerializer *s, Object *object)
 
void WriteNodes (MessageSerializer *s)
 
void TraceApi (ApiMessageSerializer *s, Dart_CObject *object)
 
void WriteNodesApi (ApiMessageSerializer *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 874 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ MintMessageSerializationCluster()

dart::MintMessageSerializationCluster::MintMessageSerializationCluster ( Zone zone,
bool  is_canonical 
)
inlineexplicit

Definition at line 876 of file message_snapshot.cc.

879 kMintCid,
881 objects_(zone, 0) {}
MessageSerializationCluster(const char *name, MessagePhase phase, intptr_t cid, bool is_canonical=false)

◆ ~MintMessageSerializationCluster()

dart::MintMessageSerializationCluster::~MintMessageSerializationCluster ( )
inline

Definition at line 882 of file message_snapshot.cc.

882{}

Member Function Documentation

◆ Trace()

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

Implements dart::MessageSerializationCluster.

Definition at line 884 of file message_snapshot.cc.

884 {
885 Mint* mint = static_cast<Mint*>(object);
886 objects_.Add(mint);
887 }

◆ TraceApi()

void dart::MintMessageSerializationCluster::TraceApi ( ApiMessageSerializer s,
Dart_CObject object 
)
inlinevirtual

Reimplemented from dart::MessageSerializationCluster.

Definition at line 899 of file message_snapshot.cc.

899 {
900 objects_.Add(reinterpret_cast<Mint*>(object));
901 }

◆ WriteNodes()

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

Implements dart::MessageSerializationCluster.

Definition at line 889 of file message_snapshot.cc.

889 {
890 const intptr_t count = objects_.length();
891 s->WriteUnsigned(count);
892 for (intptr_t i = 0; i < count; i++) {
893 Mint* mint = static_cast<Mint*>(objects_[i]);
894 s->AssignRef(mint);
895 s->Write<int64_t>(mint->value());
896 }
897 }
int count
Definition: FontMgrTest.cpp:50
struct MyStruct s

◆ WriteNodesApi()

void dart::MintMessageSerializationCluster::WriteNodesApi ( ApiMessageSerializer s)
inlinevirtual

Reimplemented from dart::MessageSerializationCluster.

Definition at line 903 of file message_snapshot.cc.

903 {
904 intptr_t count = objects_.length();
905 s->WriteUnsigned(count);
906 for (intptr_t i = 0; i < count; i++) {
907 Dart_CObject* mint = reinterpret_cast<Dart_CObject*>(objects_[i]);
908 s->AssignRef(mint);
909 int64_t value = mint->type == Dart_CObject_kInt32 ? mint->value.as_int32
910 : mint->value.as_int64;
911 s->Write<int64_t>(value);
912 }
913 }
@ Dart_CObject_kInt32
uint8_t value
union _Dart_CObject::@86 value
Dart_CObject_Type type

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