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

Public Member Functions

 ICDataSerializationCluster ()
 
 ~ICDataSerializationCluster ()
 
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 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 4058 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ ICDataSerializationCluster()

dart::ICDataSerializationCluster::ICDataSerializationCluster ( )
inline

Definition at line 4060 of file app_snapshot.cc.

4061 : SerializationCluster("ICData",
4062 kICDataCid,
SerializationCluster(const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)

◆ ~ICDataSerializationCluster()

dart::ICDataSerializationCluster::~ICDataSerializationCluster ( )
inline

Definition at line 4064 of file app_snapshot.cc.

4064{}

Member Function Documentation

◆ Trace()

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

Implements dart::SerializationCluster.

Definition at line 4066 of file app_snapshot.cc.

4066 {
4067 ICDataPtr ic = ICData::RawCast(object);
4068 objects_.Add(ic);
4069 PushFromTo(ic);
4070 }
#define PushFromTo(obj,...)
void Add(const T &value)
static ObjectPtr RawCast(ObjectPtr obj)
Definition: object.h:325

◆ WriteAlloc()

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

Implements dart::SerializationCluster.

Definition at line 4072 of file app_snapshot.cc.

4072 {
4073 const intptr_t count = objects_.length();
4074 s->WriteUnsigned(count);
4075 for (intptr_t i = 0; i < count; i++) {
4076 ICDataPtr ic = objects_[i];
4077 s->AssignRef(ic);
4078 }
4079 }
int count
Definition: FontMgrTest.cpp:50
intptr_t length() const
struct MyStruct s

◆ WriteFill()

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

Implements dart::SerializationCluster.

Definition at line 4081 of file app_snapshot.cc.

4081 {
4082 Snapshot::Kind kind = s->kind();
4083 const intptr_t count = objects_.length();
4084 for (intptr_t i = 0; i < count; i++) {
4085 ICDataPtr ic = objects_[i];
4086 AutoTraceObjectName(ic, ic->untag()->target_name_);
4087 WriteFromTo(ic);
4088 if (kind != Snapshot::kFullAOT) {
4089 NOT_IN_PRECOMPILED(s->Write<int32_t>(ic->untag()->deopt_id_));
4090 }
4091 s->Write<uint32_t>(ic->untag()->state_bits_);
4092 }
4093 }
#define WriteFromTo(obj,...)
#define AutoTraceObjectName(obj, str)
#define NOT_IN_PRECOMPILED(code)
Definition: globals.h:100

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