Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::TypeParameterSerializationCluster Class Reference
Inheritance diagram for dart::TypeParameterSerializationCluster:
dart::CanonicalSetSerializationCluster< CanonicalTypeParameterSet, TypeParameter, TypeParameterPtr > dart::SerializationCluster dart::ZoneAllocated

Public Member Functions

 TypeParameterSerializationCluster (bool is_canonical, bool cluster_represents_canonical_set)
 
 ~TypeParameterSerializationCluster ()
 
void Trace (Serializer *s, ObjectPtr object)
 
void WriteAlloc (Serializer *s)
 
void WriteFill (Serializer *s)
 
- Public Member Functions inherited from dart::SerializationCluster
 SerializationCluster (const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)
 
virtual ~SerializationCluster ()
 
virtual void Trace (Serializer *serializer, ObjectPtr object)=0
 
virtual void WriteAlloc (Serializer *serializer)=0
 
virtual void WriteFill (Serializer *serializer)=0
 
void WriteAndMeasureAlloc (Serializer *serializer)
 
void WriteAndMeasureFill (Serializer *serializer)
 
const char * name () const
 
intptr_t cid () const
 
bool is_canonical () const
 
bool is_immutable () const
 
intptr_t size () const
 
intptr_t num_objects () const
 
intptr_t target_memory_size () 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

- Static Public Attributes inherited from dart::SerializationCluster
static constexpr intptr_t kSizeVaries = -1
 
- Protected Member Functions inherited from dart::CanonicalSetSerializationCluster< CanonicalTypeParameterSet, TypeParameter, TypeParameterPtr >
 CanonicalSetSerializationCluster (intptr_t cid, bool is_canonical, bool represents_canonical_set, const char *name, intptr_t target_instance_size=0)
 
virtual bool IsInCanonicalSet (Serializer *s, TypeParameterPtr ptr)
 
void ReorderObjects (Serializer *s)
 
void WriteCanonicalSetLayout (Serializer *s)
 
- Protected Attributes inherited from dart::CanonicalSetSerializationCluster< CanonicalTypeParameterSet, TypeParameter, TypeParameterPtr >
GrowableArray< TypeParameterPtr > objects_
 
- Protected Attributes inherited from dart::SerializationCluster
const char *const name_
 
const intptr_t cid_
 
const intptr_t target_instance_size_
 
const bool is_canonical_
 
const bool is_immutable_
 
intptr_t size_ = 0
 
intptr_t num_objects_ = 0
 
intptr_t target_memory_size_ = 0
 

Detailed Description

Definition at line 5095 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ TypeParameterSerializationCluster()

dart::TypeParameterSerializationCluster::TypeParameterSerializationCluster ( bool  is_canonical,
bool  cluster_represents_canonical_set 
)
inline

Definition at line 5100 of file app_snapshot.cc.

5103 kTypeParameterCid,
5105 cluster_represents_canonical_set,
5106 "TypeParameter",
CanonicalSetSerializationCluster(intptr_t cid, bool is_canonical, bool represents_canonical_set, const char *name, intptr_t target_instance_size=0)

◆ ~TypeParameterSerializationCluster()

dart::TypeParameterSerializationCluster::~TypeParameterSerializationCluster ( )
inline

Definition at line 5108 of file app_snapshot.cc.

5108{}

Member Function Documentation

◆ Trace()

void dart::TypeParameterSerializationCluster::Trace ( Serializer s,
ObjectPtr  object 
)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 5110 of file app_snapshot.cc.

5110 {
5111 TypeParameterPtr type = TypeParameter::RawCast(object);
5112 objects_.Add(type);
5113
5115 }
#define PushFromTo(obj,...)
GLenum type
void Add(const T &value)
static ObjectPtr RawCast(ObjectPtr obj)
Definition: object.h:325

◆ WriteAlloc()

void dart::TypeParameterSerializationCluster::WriteAlloc ( Serializer s)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 5117 of file app_snapshot.cc.

5117 {
5118 intptr_t count = objects_.length();
5119 s->WriteUnsigned(count);
5121 for (intptr_t i = 0; i < count; i++) {
5122 TypeParameterPtr type = objects_[i];
5123 s->AssignRef(type);
5124 }
5126 }
int count
Definition: FontMgrTest.cpp:50
intptr_t length() const
struct MyStruct s

◆ WriteFill()

void dart::TypeParameterSerializationCluster::WriteFill ( Serializer s)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 5128 of file app_snapshot.cc.

5128 {
5129 intptr_t count = objects_.length();
5130 for (intptr_t i = 0; i < count; i++) {
5131 WriteTypeParameter(s, objects_[i]);
5132 }
5133 }

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