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

Public Member Functions

 UnhandledExceptionSerializationCluster ()
 
 ~UnhandledExceptionSerializationCluster ()
 
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 4389 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ UnhandledExceptionSerializationCluster()

dart::UnhandledExceptionSerializationCluster::UnhandledExceptionSerializationCluster ( )
inline

Definition at line 4391 of file app_snapshot.cc.

4393 "UnhandledException",
4394 kUnhandledExceptionCid,
4395 compiler::target::UnhandledException::InstanceSize()) {}
SerializationCluster(const char *name, intptr_t cid, intptr_t target_instance_size=kSizeVaries, bool is_canonical=false)

◆ ~UnhandledExceptionSerializationCluster()

dart::UnhandledExceptionSerializationCluster::~UnhandledExceptionSerializationCluster ( )
inline

Definition at line 4396 of file app_snapshot.cc.

4396{}

Member Function Documentation

◆ Trace()

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

Implements dart::SerializationCluster.

Definition at line 4398 of file app_snapshot.cc.

4398 {
4399 UnhandledExceptionPtr exception = UnhandledException::RawCast(object);
4400 objects_.Add(exception);
4401 PushFromTo(exception);
4402 }
#define PushFromTo(obj,...)
void Add(const T &value)
static ObjectPtr RawCast(ObjectPtr obj)
Definition object.h:325

◆ WriteAlloc()

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

Implements dart::SerializationCluster.

Definition at line 4404 of file app_snapshot.cc.

4404 {
4405 const intptr_t count = objects_.length();
4406 s->WriteUnsigned(count);
4407 for (intptr_t i = 0; i < count; i++) {
4408 UnhandledExceptionPtr exception = objects_[i];
4409 s->AssignRef(exception);
4410 }
4411 }
int count
intptr_t length() const
struct MyStruct s

◆ WriteFill()

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

Implements dart::SerializationCluster.

Definition at line 4413 of file app_snapshot.cc.

4413 {
4414 const intptr_t count = objects_.length();
4415 for (intptr_t i = 0; i < count; i++) {
4416 UnhandledExceptionPtr exception = objects_[i];
4417 AutoTraceObject(exception);
4418 WriteFromTo(exception);
4419 }
4420 }
#define AutoTraceObject(obj)
#define WriteFromTo(obj,...)

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