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

Public Member Functions

 DoubleMessageSerializationCluster (Zone *zone, bool is_canonical)
 
 ~DoubleMessageSerializationCluster ()
 
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 951 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ DoubleMessageSerializationCluster()

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

Definition at line 953 of file message_snapshot.cc.

956 kDoubleCid,
958 objects_(zone, 0) {}
MessageSerializationCluster(const char *name, MessagePhase phase, intptr_t cid, bool is_canonical=false)

◆ ~DoubleMessageSerializationCluster()

dart::DoubleMessageSerializationCluster::~DoubleMessageSerializationCluster ( )
inline

Definition at line 960 of file message_snapshot.cc.

960{}

Member Function Documentation

◆ Trace()

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

Implements dart::MessageSerializationCluster.

Definition at line 962 of file message_snapshot.cc.

962 {
963 Double* dbl = static_cast<Double*>(object);
964 objects_.Add(dbl);
965 }

◆ TraceApi()

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

Reimplemented from dart::MessageSerializationCluster.

Definition at line 977 of file message_snapshot.cc.

977 {
978 objects_.Add(reinterpret_cast<Double*>(object));
979 }

◆ WriteNodes()

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

Implements dart::MessageSerializationCluster.

Definition at line 967 of file message_snapshot.cc.

967 {
968 const intptr_t count = objects_.length();
969 s->WriteUnsigned(count);
970 for (intptr_t i = 0; i < count; i++) {
971 Double* dbl = objects_[i];
972 s->AssignRef(dbl);
973 s->Write<double>(dbl->untag()->value_);
974 }
975 }
int count
Definition: FontMgrTest.cpp:50
struct MyStruct s

◆ WriteNodesApi()

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

Reimplemented from dart::MessageSerializationCluster.

Definition at line 981 of file message_snapshot.cc.

981 {
982 intptr_t count = objects_.length();
983 s->WriteUnsigned(count);
984 for (intptr_t i = 0; i < count; i++) {
985 Dart_CObject* dbl = reinterpret_cast<Dart_CObject*>(objects_[i]);
986 s->AssignRef(dbl);
987 s->Write<double>(dbl->value.as_double);
988 }
989 }
union _Dart_CObject::@86 value

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