Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::bin::MappedAppSnapshot Class Reference
Inheritance diagram for dart::bin::MappedAppSnapshot:
dart::bin::AppSnapshot

Public Member Functions

 MappedAppSnapshot (MappedMemory *vm_snapshot_data, MappedMemory *vm_snapshot_instructions, MappedMemory *isolate_snapshot_data, MappedMemory *isolate_snapshot_instructions)
 
 ~MappedAppSnapshot ()
 
void SetBuffers (const uint8_t **vm_data_buffer, const uint8_t **vm_instructions_buffer, const uint8_t **isolate_data_buffer, const uint8_t **isolate_instructions_buffer)
 
- Public Member Functions inherited from dart::bin::AppSnapshot
virtual ~AppSnapshot ()
 
virtual void SetBuffers (const uint8_t **vm_data_buffer, const uint8_t **vm_instructions_buffer, const uint8_t **isolate_data_buffer, const uint8_t **isolate_instructions_buffer)=0
 
bool IsJIT () const
 
bool IsAOT () const
 
bool IsJITorAOT () const
 
bool IsKernel () const
 
bool IsKernelList () const
 

Additional Inherited Members

- Protected Member Functions inherited from dart::bin::AppSnapshot
 AppSnapshot (DartUtils::MagicNumber num)
 

Detailed Description

Definition at line 53 of file snapshot_utils.cc.

Constructor & Destructor Documentation

◆ MappedAppSnapshot()

dart::bin::MappedAppSnapshot::MappedAppSnapshot ( MappedMemory vm_snapshot_data,
MappedMemory vm_snapshot_instructions,
MappedMemory isolate_snapshot_data,
MappedMemory isolate_snapshot_instructions 
)
inline

Definition at line 55 of file snapshot_utils.cc.

60 vm_data_mapping_(vm_snapshot_data),
61 vm_instructions_mapping_(vm_snapshot_instructions),
62 isolate_data_mapping_(isolate_snapshot_data),
63 isolate_instructions_mapping_(isolate_snapshot_instructions) {}
AppSnapshot(DartUtils::MagicNumber num)
const uint8_t * isolate_snapshot_data
Definition: gen_snapshot.cc:69
const uint8_t * vm_snapshot_data
Definition: main_impl.cc:52
const uint8_t * vm_snapshot_instructions
Definition: main_impl.cc:53
const uint8_t * isolate_snapshot_instructions
Definition: gen_snapshot.cc:70

◆ ~MappedAppSnapshot()

dart::bin::MappedAppSnapshot::~MappedAppSnapshot ( )
inline

Definition at line 65 of file snapshot_utils.cc.

65 {
66 delete vm_data_mapping_;
67 delete vm_instructions_mapping_;
68 delete isolate_data_mapping_;
69 delete isolate_instructions_mapping_;
70 }

Member Function Documentation

◆ SetBuffers()

void dart::bin::MappedAppSnapshot::SetBuffers ( const uint8_t **  vm_data_buffer,
const uint8_t **  vm_instructions_buffer,
const uint8_t **  isolate_data_buffer,
const uint8_t **  isolate_instructions_buffer 
)
inlinevirtual

Implements dart::bin::AppSnapshot.

Definition at line 72 of file snapshot_utils.cc.

75 {
76 if (vm_data_mapping_ != nullptr) {
77 *vm_data_buffer =
78 reinterpret_cast<const uint8_t*>(vm_data_mapping_->address());
79 }
80 if (vm_instructions_mapping_ != nullptr) {
81 *vm_instructions_buffer =
82 reinterpret_cast<const uint8_t*>(vm_instructions_mapping_->address());
83 }
84 if (isolate_data_mapping_ != nullptr) {
85 *isolate_data_buffer =
86 reinterpret_cast<const uint8_t*>(isolate_data_mapping_->address());
87 }
88 if (isolate_instructions_mapping_ != nullptr) {
89 *isolate_instructions_buffer = reinterpret_cast<const uint8_t*>(
90 isolate_instructions_mapping_->address());
91 }
92 }
void * address() const
Definition: file.h:34

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