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

Public Member Functions

 TypeArgumentsMessageSerializationCluster (bool is_canonical)
 
 ~TypeArgumentsMessageSerializationCluster ()
 
void Trace (MessageSerializer *s, Object *object)
 
void WriteNodes (MessageSerializer *s)
 
void WriteEdges (MessageSerializer *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 591 of file message_snapshot.cc.

Constructor & Destructor Documentation

◆ TypeArgumentsMessageSerializationCluster()

dart::TypeArgumentsMessageSerializationCluster::TypeArgumentsMessageSerializationCluster ( bool  is_canonical)
inlineexplicit

Definition at line 594 of file message_snapshot.cc.

595 : MessageSerializationCluster("TypeArguments",
597 kTypeArgumentsCid,
598 is_canonical) {}
MessageSerializationCluster(const char *name, MessagePhase phase, intptr_t cid, bool is_canonical=false)

◆ ~TypeArgumentsMessageSerializationCluster()

dart::TypeArgumentsMessageSerializationCluster::~TypeArgumentsMessageSerializationCluster ( )
inline

Definition at line 599 of file message_snapshot.cc.

599{}

Member Function Documentation

◆ Trace()

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

Implements dart::MessageSerializationCluster.

Definition at line 601 of file message_snapshot.cc.

601 {
602 TypeArguments* type_args = static_cast<TypeArguments*>(object);
603 objects_.Add(type_args);
604
605 s->Push(type_args->untag()->instantiations());
606 intptr_t length = Smi::Value(type_args->untag()->length());
607 for (intptr_t i = 0; i < length; i++) {
608 s->Push(type_args->untag()->element(i));
609 }
610 }
intptr_t Value() const
Definition: object.h:9990
struct MyStruct s
size_t length

◆ WriteEdges()

void dart::TypeArgumentsMessageSerializationCluster::WriteEdges ( MessageSerializer s)
inlinevirtual

Reimplemented from dart::MessageSerializationCluster.

Definition at line 623 of file message_snapshot.cc.

623 {
624 const intptr_t count = objects_.length();
625 for (intptr_t i = 0; i < count; i++) {
626 TypeArguments* type_args = objects_[i];
627 intptr_t hash = Smi::Value(type_args->untag()->hash());
628 s->Write<int32_t>(hash);
629 const intptr_t nullability =
630 Smi::Value(type_args->untag()->nullability());
631 s->WriteUnsigned(nullability);
632
633 intptr_t length = Smi::Value(type_args->untag()->length());
634 s->WriteUnsigned(length);
635 for (intptr_t j = 0; j < length; j++) {
636 s->WriteRef(type_args->untag()->element(j));
637 }
638 }
639 }
int count
Definition: FontMgrTest.cpp:50
static uint32_t hash(const SkShaderBase::GradientInfo &v)

◆ WriteNodes()

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

Implements dart::MessageSerializationCluster.

Definition at line 612 of file message_snapshot.cc.

612 {
613 const intptr_t count = objects_.length();
614 s->WriteUnsigned(count);
615 for (intptr_t i = 0; i < count; i++) {
616 TypeArguments* type_args = objects_[i];
617 s->AssignRef(type_args);
618 intptr_t length = Smi::Value(type_args->untag()->length());
619 s->WriteUnsigned(length);
620 }
621 }

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