Definition at line 2302 of file app_snapshot.cc.
◆ ScriptSerializationCluster()
dart::ScriptSerializationCluster::ScriptSerializationCluster |
( |
| ) |
|
|
inline |
Definition at line 2304 of file app_snapshot.cc.
2306 kScriptCid,
SerializationCluster(const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)
static word InstanceSize()
◆ ~ScriptSerializationCluster()
dart::ScriptSerializationCluster::~ScriptSerializationCluster |
( |
| ) |
|
|
inline |
◆ Trace()
Implements dart::SerializationCluster.
Definition at line 2310 of file app_snapshot.cc.
2310 {
2313 auto* from =
script->untag()->from();
2314 auto* to =
script->untag()->to_snapshot(
s->kind());
2315 for (
auto*
p = from;
p <= to;
p++) {
2318 const ObjectPtr obj =
p->Decompress(
script->heap_base());
2320
2321 s->Push(obj, kDeltaEncodedTypedDataCid);
2322 } else {
2324 }
2325 }
2326 }
static ObjectPtr RawCast(ObjectPtr obj)
static intptr_t line_starts_offset()
◆ WriteAlloc()
void dart::ScriptSerializationCluster::WriteAlloc |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
◆ WriteFill()
void dart::ScriptSerializationCluster::WriteFill |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
Implements dart::SerializationCluster.
Definition at line 2337 of file app_snapshot.cc.
2337 {
2339 for (intptr_t
i = 0;
i <
count;
i++) {
2340 ScriptPtr
script = objects_[
i];
2344
2345
2346 int32_t written_flags =
2348 0,
script->untag()->flags_and_max_position_);
2350 false, written_flags);
2351 s->Write<int32_t>(written_flags);
2352 }
2353 s->Write<int32_t>(
script->untag()->kernel_script_index_);
2354 }
2355 }
#define WriteFromTo(obj,...)
#define AutoTraceObjectName(obj, str)
static constexpr S update(T value, S original)
The documentation for this class was generated from the following file: