Definition at line 3612 of file app_snapshot.cc.
◆ RODataSerializationCluster()
dart::RODataSerializationCluster::RODataSerializationCluster |
( |
Zone * |
zone, |
|
|
const char * |
type, |
|
|
intptr_t |
cid, |
|
|
bool |
is_canonical |
|
) |
| |
|
inline |
Definition at line 3617 of file app_snapshot.cc.
3626 zone_(zone),
CanonicalSetSerializationCluster(intptr_t cid, bool is_canonical, bool represents_canonical_set, const char *name, intptr_t target_instance_size=0)
static const char * TagObjectTypeAsReadOnly(Zone *zone, const char *type)
bool is_canonical() const
bool IsStringClassId(intptr_t index)
◆ ~RODataSerializationCluster()
dart::RODataSerializationCluster::~RODataSerializationCluster |
( |
| ) |
|
|
inline |
◆ Trace()
Implements dart::SerializationCluster.
Definition at line 3631 of file app_snapshot.cc.
3631 {
3632
3633
3634
3635
3636 if (object->untag()->InVMIsolateHeap() ||
3637 s->heap()->old_space()->IsObjectFromImagePages(
object)) {
3638
3639 } else {
3641 }
3642
3644 }
GrowableArray< ObjectPtr > objects_
static void FinalizeReadOnlyObject(ObjectPtr object)
◆ WriteAlloc()
void dart::RODataSerializationCluster::WriteAlloc |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
Implements dart::SerializationCluster.
Definition at line 3646 of file app_snapshot.cc.
3646 {
3648
3652
3653 uint32_t running_offset = 0;
3654 for (intptr_t
i = 0;
i <
count;
i++) {
3656 s->AssignRef(
object);
3657 const StringPtr
name =
3659 Serializer::WritingObjectScope scope(
s, type_,
object,
name);
3660 uint32_t
offset =
s->GetDataOffset(
object);
3665 s->WriteUnsigned((
offset - running_offset) >>
3668 }
3670 }
void ReorderObjects(Serializer *s)
void WriteCanonicalSetLayout(Serializer *s)
static ObjectPtr RawCast(ObjectPtr obj)
const char * name() const
static constexpr bool IsAligned(T x, uintptr_t alignment, uintptr_t offset=0)
static constexpr intptr_t kObjectAlignmentLog2
static constexpr intptr_t kObjectAlignment
◆ WriteFill()
void dart::RODataSerializationCluster::WriteFill |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: