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

Public Member Functions

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

Constructor & Destructor Documentation

◆ NativePointerMessageSerializationCluster()

dart::NativePointerMessageSerializationCluster::NativePointerMessageSerializationCluster ( Zone zone)
inlineexplicit

Definition at line 1441 of file message_snapshot.cc.

1442 : MessageSerializationCluster("NativePointer",
1445 objects_(zone, 0) {}
MessageSerializationCluster(const char *name, MessagePhase phase, intptr_t cid, bool is_canonical=false)
@ kNativePointer
Definition: class_id.h:218

◆ ~NativePointerMessageSerializationCluster()

dart::NativePointerMessageSerializationCluster::~NativePointerMessageSerializationCluster ( )
inline

Definition at line 1446 of file message_snapshot.cc.

1446{}

Member Function Documentation

◆ Trace()

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

Implements dart::MessageSerializationCluster.

Definition at line 1448 of file message_snapshot.cc.

1448{ UNREACHABLE(); }
#define UNREACHABLE()
Definition: assert.h:248

◆ TraceApi()

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

Reimplemented from dart::MessageSerializationCluster.

Definition at line 1452 of file message_snapshot.cc.

1452 {
1453 objects_.Add(object);
1454 }

◆ WriteNodes()

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

Implements dart::MessageSerializationCluster.

Definition at line 1450 of file message_snapshot.cc.

1450{ UNREACHABLE(); }

◆ WriteNodesApi()

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

Reimplemented from dart::MessageSerializationCluster.

Definition at line 1456 of file message_snapshot.cc.

1456 {
1457 intptr_t count = objects_.length();
1458 s->WriteUnsigned(count);
1459 for (intptr_t i = 0; i < count; i++) {
1460 Dart_CObject* data = objects_[i];
1461 s->AssignRef(data);
1462
1463 s->finalizable_data()->Put(
1464 data->value.as_native_pointer.size,
1465 reinterpret_cast<void*>(data->value.as_native_pointer.ptr),
1466 reinterpret_cast<void*>(data->value.as_native_pointer.ptr),
1467 data->value.as_native_pointer.callback);
1468 }
1469 }
int count
Definition: FontMgrTest.cpp:50
struct MyStruct s
static int8_t data[kExtLength]

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