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

Public Member Functions

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

Constructor & Destructor Documentation

◆ LibraryDeserializationCluster()

dart::LibraryDeserializationCluster::LibraryDeserializationCluster ( )
inline

Definition at line 2436 of file app_snapshot.cc.

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

◆ ~LibraryDeserializationCluster()

dart::LibraryDeserializationCluster::~LibraryDeserializationCluster ( )
inline

Definition at line 2437 of file app_snapshot.cc.

2437{}

Member Function Documentation

◆ ReadAlloc()

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

Implements dart::DeserializationCluster.

Definition at line 2439 of file app_snapshot.cc.

2439 {
2441 }
void ReadAllocFixedSize(Deserializer *deserializer, intptr_t instance_size)
static intptr_t InstanceSize()
Definition: object.h:5119
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition: main.cc:19

◆ ReadFill()

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

Implements dart::DeserializationCluster.

Definition at line 2443 of file app_snapshot.cc.

2443 {
2444 Deserializer::Local d(d_);
2445
2446 ASSERT(!is_canonical()); // Never canonical.
2447 for (intptr_t id = start_index_, n = stop_index_; id < n; id++) {
2448 LibraryPtr lib = static_cast<LibraryPtr>(d.Ref(id));
2450 d.ReadFromTo(lib);
2451 lib->untag()->native_entry_resolver_ = nullptr;
2452 lib->untag()->native_entry_symbol_resolver_ = nullptr;
2453 lib->untag()->ffi_native_resolver_ = nullptr;
2454 lib->untag()->index_ = d.Read<int32_t>();
2455 lib->untag()->num_imports_ = d.Read<uint16_t>();
2456 lib->untag()->load_state_ = d.Read<int8_t>();
2457 lib->untag()->flags_ =
2458 UntaggedLibrary::InFullSnapshotBit::update(true, d.Read<uint8_t>());
2459#if !defined(DART_PRECOMPILED_RUNTIME)
2460 ASSERT(d_->kind() != Snapshot::kFullAOT);
2461 lib->untag()->kernel_library_index_ = d.Read<uint32_t>();
2462#endif
2463 }
2464 }
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: