Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::LoadingUnitSerializationData Class Reference

#include <app_snapshot.h>

Inheritance diagram for dart::LoadingUnitSerializationData:
dart::ZoneAllocated

Public Member Functions

 LoadingUnitSerializationData (intptr_t id, LoadingUnitSerializationData *parent)
 
intptr_t id () const
 
LoadingUnitSerializationDataparent () const
 
void AddDeferredObject (CodePtr obj)
 
GrowableArray< Code * > * deferred_objects ()
 
ZoneGrowableArray< Object * > * objects ()
 
void set_objects (ZoneGrowableArray< Object * > *objects)
 
- 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)
 

Detailed Description

Definition at line 42 of file app_snapshot.h.

Constructor & Destructor Documentation

◆ LoadingUnitSerializationData()

dart::LoadingUnitSerializationData::LoadingUnitSerializationData ( intptr_t  id,
LoadingUnitSerializationData parent 
)
inline

Definition at line 44 of file app_snapshot.h.

46 : id_(id), parent_(parent), deferred_objects_(), objects_(nullptr) {}
LoadingUnitSerializationData * parent() const
Definition: app_snapshot.h:49

Member Function Documentation

◆ AddDeferredObject()

void dart::LoadingUnitSerializationData::AddDeferredObject ( CodePtr  obj)
inline

Definition at line 50 of file app_snapshot.h.

50 {
51 deferred_objects_.Add(&Code::ZoneHandle(obj));
52 }
static Object & ZoneHandle()
Definition: object.h:419

◆ deferred_objects()

GrowableArray< Code * > * dart::LoadingUnitSerializationData::deferred_objects ( )
inline

Definition at line 53 of file app_snapshot.h.

53{ return &deferred_objects_; }

◆ id()

intptr_t dart::LoadingUnitSerializationData::id ( ) const
inline

Definition at line 48 of file app_snapshot.h.

48{ return id_; }

◆ objects()

ZoneGrowableArray< Object * > * dart::LoadingUnitSerializationData::objects ( )
inline

Definition at line 54 of file app_snapshot.h.

54 {
55 ASSERT(objects_ != nullptr);
56 return objects_;
57 }
#define ASSERT(E)

◆ parent()

LoadingUnitSerializationData * dart::LoadingUnitSerializationData::parent ( ) const
inline

Definition at line 49 of file app_snapshot.h.

49{ return parent_; }

◆ set_objects()

void dart::LoadingUnitSerializationData::set_objects ( ZoneGrowableArray< Object * > *  objects)
inline

Definition at line 58 of file app_snapshot.h.

58 {
59 ASSERT(objects_ == nullptr);
60 objects_ = objects;
61 }
ZoneGrowableArray< Object * > * objects()
Definition: app_snapshot.h:54

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