Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::ExceptionHandlersDeserializationCluster Class Reference
Inheritance diagram for dart::ExceptionHandlersDeserializationCluster:
dart::DeserializationCluster dart::ZoneAllocated

Public Member Functions

 ExceptionHandlersDeserializationCluster ()
 
 ~ExceptionHandlersDeserializationCluster ()
 
void ReadAlloc (Deserializer *d) override
 
void ReadFill (Deserializer *d_) override
 
- Public Member Functions inherited from dart::DeserializationCluster
 DeserializationCluster (const char *name, bool is_canonical=false, bool is_immutable=false)
 
virtual ~DeserializationCluster ()
 
virtual void ReadAlloc (Deserializer *deserializer)=0
 
virtual void ReadFill (Deserializer *deserializer)=0
 
virtual void PostLoad (Deserializer *deserializer, const Array &refs)
 
const char * name () const
 
bool is_canonical () 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

- Protected Member Functions inherited from dart::DeserializationCluster
void ReadAllocFixedSize (Deserializer *deserializer, intptr_t instance_size)
 
- Protected Attributes inherited from dart::DeserializationCluster
const char *const name_
 
const bool is_canonical_
 
const bool is_immutable_
 
intptr_t start_index_
 
intptr_t stop_index_
 

Detailed Description

Definition at line 3790 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ ExceptionHandlersDeserializationCluster()

dart::ExceptionHandlersDeserializationCluster::ExceptionHandlersDeserializationCluster ( )
inline

Definition at line 3792 of file app_snapshot.cc.

3793 : DeserializationCluster("ExceptionHandlers") {}
DeserializationCluster(const char *name, bool is_canonical=false, bool is_immutable=false)

◆ ~ExceptionHandlersDeserializationCluster()

dart::ExceptionHandlersDeserializationCluster::~ExceptionHandlersDeserializationCluster ( )
inline

Definition at line 3794 of file app_snapshot.cc.

3794{}

Member Function Documentation

◆ ReadAlloc()

void dart::ExceptionHandlersDeserializationCluster::ReadAlloc ( Deserializer d)
inlineoverridevirtual

Implements dart::DeserializationCluster.

Definition at line 3796 of file app_snapshot.cc.

3796 {
3797 start_index_ = d->next_index();
3798 const intptr_t count = d->ReadUnsigned();
3799 for (intptr_t i = 0; i < count; i++) {
3800 const intptr_t length = d->ReadUnsigned();
3801 d->AssignRef(d->Allocate(ExceptionHandlers::InstanceSize(length)));
3802 }
3803 stop_index_ = d->next_index();
3804 }
int count
Definition: FontMgrTest.cpp:50
static intptr_t InstanceSize()
Definition: object.h:6606
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19
size_t length

◆ ReadFill()

void dart::ExceptionHandlersDeserializationCluster::ReadFill ( Deserializer d_)
inlineoverridevirtual

Implements dart::DeserializationCluster.

Definition at line 3806 of file app_snapshot.cc.

3806 {
3807 Deserializer::Local d(d_);
3808
3809 ASSERT(!is_canonical()); // Never canonical.
3810 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
3811 ExceptionHandlersPtr handlers =
3812 static_cast<ExceptionHandlersPtr>(d.Ref(id));
3813 const intptr_t packed_fields = d.ReadUnsigned();
3814 const intptr_t length =
3816 Deserializer::InitializeHeader(handlers, kExceptionHandlersCid,
3818 handlers->untag()->packed_fields_ = packed_fields;
3819 handlers->untag()->handled_types_data_ =
3820 static_cast<ArrayPtr>(d.ReadRef());
3821 for (intptr_t j = 0; j < length; j++) {
3822 ExceptionHandlerInfo& info = handlers->untag()->data()[j];
3823 info.handler_pc_offset = d.Read<uint32_t>();
3824 info.outer_try_index = d.Read<int16_t>();
3825 info.needs_stacktrace = d.Read<int8_t>();
3826 info.has_catch_all = d.Read<int8_t>();
3827 info.is_generated = d.Read<int8_t>();
3828 }
3829 }
3830 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
static constexpr T decode(S value)
Definition: bitfield.h:171
static void InitializeHeader(ObjectPtr raw, intptr_t cid, intptr_t size, bool is_canonical=false)
#define ASSERT(E)

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