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

Public Member Functions

 CapabilityMessageSerializationCluster (Zone *zone)
 
 ~CapabilityMessageSerializationCluster ()
 
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 2036 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ CapabilityMessageSerializationCluster()

dart::CapabilityMessageSerializationCluster::CapabilityMessageSerializationCluster ( Zone zone)
inlineexplicit

Definition at line 2039 of file message_snapshot.cc.

2040 : MessageSerializationCluster("Capability",
2042 kCapabilityCid),
2043 objects_(zone, 0) {}
MessageSerializationCluster(const char *name, MessagePhase phase, intptr_t cid, bool is_canonical=false)

◆ ~CapabilityMessageSerializationCluster()

dart::CapabilityMessageSerializationCluster::~CapabilityMessageSerializationCluster ( )
inline

Definition at line 2044 of file message_snapshot.cc.

2044{}

Member Function Documentation

◆ Trace()

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

Implements dart::MessageSerializationCluster.

Definition at line 2046 of file message_snapshot.cc.

2046 {
2047 Capability* cap = static_cast<Capability*>(object);
2048 objects_.Add(cap);
2049 }

◆ TraceApi()

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

Reimplemented from dart::MessageSerializationCluster.

Definition at line 2061 of file message_snapshot.cc.

2061 {
2062 objects_.Add(reinterpret_cast<Capability*>(object));
2063 }

◆ WriteNodes()

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

Implements dart::MessageSerializationCluster.

Definition at line 2051 of file message_snapshot.cc.

2051 {
2052 const intptr_t count = objects_.length();
2053 s->WriteUnsigned(count);
2054 for (intptr_t i = 0; i < count; i++) {
2055 Capability* cap = objects_[i];
2056 s->AssignRef(cap);
2057 s->Write<uint64_t>(cap->untag()->id_);
2058 }
2059 }
int count
Definition: FontMgrTest.cpp:50
struct MyStruct s

◆ WriteNodesApi()

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

Reimplemented from dart::MessageSerializationCluster.

Definition at line 2065 of file message_snapshot.cc.

2065 {
2066 intptr_t count = objects_.length();
2067 s->WriteUnsigned(count);
2068 for (intptr_t i = 0; i < count; i++) {
2069 Dart_CObject* cap = reinterpret_cast<Dart_CObject*>(objects_[i]);
2070 s->AssignRef(cap);
2071 s->Write<Dart_Port>(cap->value.as_capability.id);
2072 }
2073 }
int64_t Dart_Port
Definition: dart_api.h:1525
union _Dart_CObject::@86 value
struct _Dart_CObject::@86::@88 as_capability

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