Definition at line 2135 of file app_snapshot.cc.
◆ FieldSerializationCluster()
dart::FieldSerializationCluster::FieldSerializationCluster |
( |
| ) |
|
|
inline |
Definition at line 2137 of file app_snapshot.cc.
2139 kFieldCid,
SerializationCluster(const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)
static word InstanceSize()
◆ ~FieldSerializationCluster()
dart::FieldSerializationCluster::~FieldSerializationCluster |
( |
| ) |
|
|
inline |
◆ Trace()
Implements dart::SerializationCluster.
Definition at line 2143 of file app_snapshot.cc.
2143 {
2145 objects_.
Add(field);
2146
2148
2149 s->Push(field->untag()->name());
2150 s->Push(field->untag()->owner());
2151 s->Push(field->untag()->type());
2152
2153 s->Push(field->untag()->initializer_function());
2154
2156 s->Push(field->untag()->guarded_list_length());
2157 }
2159 s->Push(field->untag()->dependent_code());
2160 }
2161
2163 s->Push(field->untag()->host_offset_or_field_id());
2164 } else {
2166 }
2167 }
static intptr_t TargetOffsetOf(FieldPtr field)
static ObjectPtr RawCast(ObjectPtr obj)
static SmiPtr New(intptr_t value)
static DecodeResult decode(std::string path)
◆ WriteAlloc()
void dart::FieldSerializationCluster::WriteAlloc |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
◆ WriteFill()
void dart::FieldSerializationCluster::WriteFill |
( |
Serializer * |
s | ) |
|
|
inlinevirtual |
Implements dart::SerializationCluster.
Definition at line 2178 of file app_snapshot.cc.
2178 {
2181 for (intptr_t
i = 0;
i <
count;
i++) {
2182 FieldPtr field = objects_[
i];
2184
2188
2192 }
2195 }
2196
2198 s->WriteTokenPosition(field->untag()->token_pos_);
2199 s->WriteTokenPosition(field->untag()->end_token_pos_);
2200 s->WriteCid(field->untag()->guarded_cid_);
2201 s->WriteCid(field->untag()->is_nullable_);
2202 s->Write<int8_t>(field->untag()->static_type_exactness_state_);
2203 s->Write<uint32_t>(field->untag()->kernel_offset_);
2204 }
2205 s->Write<uint16_t>(field->untag()->kind_bits_);
2206
2207
2210 } else {
2212 }
2213 }
2214 }
#define AutoTraceObjectName(obj, str)
#define WriteCompressedField(obj, name)
#define WriteFieldValue(field, value)
const char * name() const
The documentation for this class was generated from the following file: