Definition at line 5581 of file app_snapshot.cc.
◆ RecordSerializationCluster()
dart::RecordSerializationCluster::RecordSerializationCluster |
( |
bool |
is_canonical | ) |
|
|
inlineexplicit |
Definition at line 5583 of file app_snapshot.cc.
bool is_canonical() const
static constexpr intptr_t kSizeVaries
SerializationCluster(const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)
◆ ~RecordSerializationCluster()
dart::RecordSerializationCluster::~RecordSerializationCluster |
( |
| ) |
|
|
inline |
◆ Trace()
Implements dart::SerializationCluster.
Definition at line 5587 of file app_snapshot.cc.
5587 {
5589 objects_.
Add(record);
5590
5592 for (intptr_t
i = 0;
i < num_fields; ++
i) {
5593 s->Push(record->untag()->field(
i));
5594 }
5595 }
static ObjectPtr RawCast(ObjectPtr obj)
static intptr_t NumFields(RecordPtr ptr)
◆ WriteAlloc()
void dart::RecordSerializationCluster::WriteAlloc |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
Implements dart::SerializationCluster.
Definition at line 5597 of file app_snapshot.cc.
5597 {
5600 for (intptr_t
i = 0;
i <
count; ++
i) {
5601 RecordPtr record = objects_[
i];
5602 s->AssignRef(record);
5605 s->WriteUnsigned(num_fields);
5607 }
5608 }
#define AutoTraceObject(obj)
intptr_t target_memory_size_
static word InstanceSize()
◆ WriteFill()
void dart::RecordSerializationCluster::WriteFill |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
Implements dart::SerializationCluster.
Definition at line 5610 of file app_snapshot.cc.
5610 {
5612 for (intptr_t
i = 0;
i <
count; ++
i) {
5613 RecordPtr record = objects_[
i];
5615 const RecordShape shape(record->untag()->shape());
5616 s->WriteUnsigned(shape.AsInt());
5617 const intptr_t num_fields = shape.num_fields();
5618 for (intptr_t j = 0; j < num_fields; ++j) {
5619 s->WriteElementRef(record->untag()->field(j), j);
5620 }
5621 }
5622 }
The documentation for this class was generated from the following file: