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

Public Member Functions

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

Constructor & Destructor Documentation

◆ CompressedStackMapsSerializationCluster()

dart::CompressedStackMapsSerializationCluster::CompressedStackMapsSerializationCluster ( )
inline

Definition at line 3531 of file app_snapshot.cc.

3532 : SerializationCluster("CompressedStackMaps", kCompressedStackMapsCid) {}
SerializationCluster(const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)

◆ ~CompressedStackMapsSerializationCluster()

dart::CompressedStackMapsSerializationCluster::~CompressedStackMapsSerializationCluster ( )
inline

Definition at line 3533 of file app_snapshot.cc.

3533{}

Member Function Documentation

◆ Trace()

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

Implements dart::SerializationCluster.

Definition at line 3535 of file app_snapshot.cc.

3535 {
3536 CompressedStackMapsPtr desc = CompressedStackMaps::RawCast(object);
3537 objects_.Add(desc);
3538 }
void Add(const T &value)
static ObjectPtr RawCast(ObjectPtr obj)
Definition: object.h:325

◆ WriteAlloc()

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

Implements dart::SerializationCluster.

Definition at line 3540 of file app_snapshot.cc.

3540 {
3541 const intptr_t count = objects_.length();
3542 s->WriteUnsigned(count);
3543 for (intptr_t i = 0; i < count; i++) {
3544 CompressedStackMapsPtr map = objects_[i];
3545 s->AssignRef(map);
3548 map->untag()->payload()->flags_and_size());
3549 s->WriteUnsigned(length);
3552 }
3553 }
int count
Definition: FontMgrTest.cpp:50
#define AutoTraceObject(obj)
intptr_t length() const
struct MyStruct s
size_t length
SI auto map(std::index_sequence< I... >, Fn &&fn, const Args &... args) -> skvx::Vec< sizeof...(I), decltype(fn(args[0]...))>
Definition: SkVx.h:680
static DecodeResult decode(std::string path)
Definition: png_codec.cpp:124

◆ WriteFill()

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

Implements dart::SerializationCluster.

Definition at line 3555 of file app_snapshot.cc.

3555 {
3556 const intptr_t count = objects_.length();
3557 for (intptr_t i = 0; i < count; i++) {
3558 CompressedStackMapsPtr map = objects_[i];
3560 s->WriteUnsigned(map->untag()->payload()->flags_and_size());
3562 map->untag()->payload()->flags_and_size());
3563 uint8_t* cdata =
3564 reinterpret_cast<uint8_t*>(map->untag()->payload()->data());
3565 s->WriteBytes(cdata, length);
3566 }
3567 }

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