Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::SendPortMessageSerializationCluster Class Reference
Inheritance diagram for dart::SendPortMessageSerializationCluster:
dart::MessageSerializationCluster dart::ZoneAllocated

Public Member Functions

 SendPortMessageSerializationCluster (Zone *zone)
 
 ~SendPortMessageSerializationCluster ()
 
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 WriteEdges (MessageSerializer *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 1965 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ SendPortMessageSerializationCluster()

dart::SendPortMessageSerializationCluster::SendPortMessageSerializationCluster ( Zone zone)
inlineexplicit

Definition at line 1967 of file message_snapshot.cc.

1968 : MessageSerializationCluster("SendPort",
1970 kSendPortCid),
1971 objects_(zone, 0) {}
MessageSerializationCluster(const char *name, MessagePhase phase, intptr_t cid, bool is_canonical=false)

◆ ~SendPortMessageSerializationCluster()

dart::SendPortMessageSerializationCluster::~SendPortMessageSerializationCluster ( )
inline

Definition at line 1972 of file message_snapshot.cc.

1972{}

Member Function Documentation

◆ Trace()

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

Implements dart::MessageSerializationCluster.

Definition at line 1974 of file message_snapshot.cc.

1974 {
1975 SendPort* port = static_cast<SendPort*>(object);
1976 objects_.Add(port);
1977 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service port
Definition switches.h:87

◆ TraceApi()

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

Reimplemented from dart::MessageSerializationCluster.

Definition at line 1990 of file message_snapshot.cc.

1990 {
1991 objects_.Add(reinterpret_cast<SendPort*>(object));
1992 }

◆ WriteNodes()

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

Implements dart::MessageSerializationCluster.

Definition at line 1979 of file message_snapshot.cc.

1979 {
1980 const intptr_t count = objects_.length();
1981 s->WriteUnsigned(count);
1982 for (intptr_t i = 0; i < count; i++) {
1983 SendPort* port = objects_[i];
1984 s->AssignRef(port);
1985 s->Write<Dart_Port>(port->untag()->id_);
1986 s->Write<Dart_Port>(port->untag()->origin_id_);
1987 }
1988 }
int count
int64_t Dart_Port
Definition dart_api.h:1524
struct MyStruct s

◆ WriteNodesApi()

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

Reimplemented from dart::MessageSerializationCluster.

Definition at line 1994 of file message_snapshot.cc.

1994 {
1995 intptr_t count = objects_.length();
1996 s->WriteUnsigned(count);
1997 for (intptr_t i = 0; i < count; i++) {
1998 Dart_CObject* port = reinterpret_cast<Dart_CObject*>(objects_[i]);
1999 s->AssignRef(port);
2000 s->Write<Dart_Port>(port->value.as_send_port.id);
2001 s->Write<Dart_Port>(port->value.as_send_port.origin_id);
2002 }
2003 }

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