Definition at line 6610 of file app_snapshot.cc.
◆ StringSerializationCluster()
dart::StringSerializationCluster::StringSerializationCluster |
( |
bool |
is_canonical, |
|
|
bool |
represents_canonical_set |
|
) |
| |
|
inlineexplicit |
Definition at line 6624 of file app_snapshot.cc.
6628 represents_canonical_set,
6629 "String",
CanonicalSetSerializationCluster(intptr_t cid, bool is_canonical, bool represents_canonical_set, const char *name, intptr_t target_instance_size=0)
bool is_canonical() const
static constexpr intptr_t kSizeVaries
◆ ~StringSerializationCluster()
dart::StringSerializationCluster::~StringSerializationCluster |
( |
| ) |
|
|
inline |
◆ EncodeLengthAndCid()
static intptr_t dart::StringSerializationCluster::EncodeLengthAndCid |
( |
intptr_t |
length, |
|
|
intptr_t |
cid |
|
) |
| |
|
inlinestatic |
◆ Trace()
◆ WriteAlloc()
void dart::StringSerializationCluster::WriteAlloc |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
Implements dart::SerializationCluster.
Definition at line 6638 of file app_snapshot.cc.
6638 {
6642 for (intptr_t
i = 0;
i <
count;
i++) {
6646 const intptr_t
cid = str->GetClassId();
6649 s->WriteUnsigned(encoded);
6651 cid == kOneByteStringCid
6654 }
6656 }
#define AutoTraceObject(obj)
void ReorderObjects(Serializer *s)
void WriteCanonicalSetLayout(Serializer *s)
intptr_t target_memory_size_
static intptr_t EncodeLengthAndCid(intptr_t length, intptr_t cid)
static word InstanceSize()
◆ WriteFill()
void dart::StringSerializationCluster::WriteFill |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
Implements dart::SerializationCluster.
Definition at line 6658 of file app_snapshot.cc.
6658 {
6660 for (intptr_t
i = 0;
i <
count;
i++) {
6663 const intptr_t
cid = str->GetClassId();
6666 s->WriteUnsigned(encoded);
6667 if (
cid == kOneByteStringCid) {
6668 s->WriteBytes(
static_cast<OneByteStringPtr
>(str)->
untag()->
data(),
6670 } else {
6671 s->WriteBytes(
reinterpret_cast<uint8_t*
>(
6672 static_cast<TwoByteStringPtr
>(str)->
untag()->
data()),
6674 }
6675 }
6676 }
raw_obj untag() -> num_entries()) VARIABLE_COMPRESSED_VISITOR(Array, Smi::Value(raw_obj->untag() ->length())) VARIABLE_COMPRESSED_VISITOR(TypedData, TypedData::ElementSizeInBytes(raw_obj->GetClassId()) *Smi::Value(raw_obj->untag() ->length())) VARIABLE_COMPRESSED_VISITOR(Record, RecordShape(raw_obj->untag() ->shape()).num_fields()) VARIABLE_NULL_VISITOR(CompressedStackMaps, CompressedStackMaps::PayloadSizeOf(raw_obj)) VARIABLE_NULL_VISITOR(OneByteString, Smi::Value(raw_obj->untag() ->length())) VARIABLE_NULL_VISITOR(TwoByteString, Smi::Value(raw_obj->untag() ->length())) intptr_t UntaggedField::VisitFieldPointers(FieldPtr raw_obj, ObjectPointerVisitor *visitor)
static int8_t data[kExtLength]
The documentation for this class was generated from the following file: