Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::LanguageErrorSerializationCluster Class Reference
Inheritance diagram for dart::LanguageErrorSerializationCluster:
dart::SerializationCluster dart::ZoneAllocated

Public Member Functions

 LanguageErrorSerializationCluster ()
 
 ~LanguageErrorSerializationCluster ()
 
void Trace (Serializer *s, ObjectPtr object)
 
void WriteAlloc (Serializer *s)
 
void WriteFill (Serializer *s)
 
- Public Member Functions inherited from dart::SerializationCluster
 SerializationCluster (const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)
 
virtual ~SerializationCluster ()
 
void WriteAndMeasureAlloc (Serializer *serializer)
 
void WriteAndMeasureFill (Serializer *serializer)
 
const char * name () const
 
intptr_t cid () const
 
bool is_canonical () const
 
bool is_immutable () const
 
intptr_t size () const
 
intptr_t num_objects () const
 
intptr_t target_memory_size () const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Additional Inherited Members

- Static Public Attributes inherited from dart::SerializationCluster
static constexpr intptr_t kSizeVaries = -1
 
- Protected Attributes inherited from dart::SerializationCluster
const char *const name_
 
const intptr_t cid_
 
const intptr_t target_instance_size_
 
const bool is_canonical_
 
const bool is_immutable_
 
intptr_t size_ = 0
 
intptr_t num_objects_ = 0
 
intptr_t target_memory_size_ = 0
 

Detailed Description

Definition at line 4322 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ LanguageErrorSerializationCluster()

dart::LanguageErrorSerializationCluster::LanguageErrorSerializationCluster ( )
inline

Definition at line 4324 of file app_snapshot.cc.

4325 : SerializationCluster("LanguageError",
4326 kLanguageErrorCid,
4327 compiler::target::LanguageError::InstanceSize()) {}
SerializationCluster(const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)

◆ ~LanguageErrorSerializationCluster()

dart::LanguageErrorSerializationCluster::~LanguageErrorSerializationCluster ( )
inline

Definition at line 4328 of file app_snapshot.cc.

4328{}

Member Function Documentation

◆ Trace()

void dart::LanguageErrorSerializationCluster::Trace ( Serializer s,
ObjectPtr  object 
)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 4330 of file app_snapshot.cc.

4330 {
4331 LanguageErrorPtr error = LanguageError::RawCast(object);
4332 objects_.Add(error);
4334 }
#define PushFromTo(obj,...)
void Add(const T &value)
static ObjectPtr RawCast(ObjectPtr obj)
Definition object.h:325
const uint8_t uint32_t uint32_t GError ** error

◆ WriteAlloc()

void dart::LanguageErrorSerializationCluster::WriteAlloc ( Serializer s)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 4336 of file app_snapshot.cc.

4336 {
4337 const intptr_t count = objects_.length();
4338 s->WriteUnsigned(count);
4339 for (intptr_t i = 0; i < count; i++) {
4340 LanguageErrorPtr error = objects_[i];
4341 s->AssignRef(error);
4342 }
4343 }
int count
intptr_t length() const
struct MyStruct s

◆ WriteFill()

void dart::LanguageErrorSerializationCluster::WriteFill ( Serializer s)
inlinevirtual

Implements dart::SerializationCluster.

Definition at line 4345 of file app_snapshot.cc.

4345 {
4346 const intptr_t count = objects_.length();
4347 for (intptr_t i = 0; i < count; i++) {
4348 LanguageErrorPtr error = objects_[i];
4351 s->WriteTokenPosition(error->untag()->token_pos_);
4352 s->Write<bool>(error->untag()->report_after_token_);
4353 s->Write<int8_t>(error->untag()->kind_);
4354 }
4355 }
#define AutoTraceObject(obj)
#define WriteFromTo(obj,...)

The documentation for this class was generated from the following file: