Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 ()
 
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 52 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 54 of file snapshot_utils.cc.

59 vm_data_mapping_(vm_snapshot_data),
60 vm_instructions_mapping_(vm_snapshot_instructions),
61 isolate_data_mapping_(isolate_snapshot_data),
62 isolate_instructions_mapping_(isolate_snapshot_instructions) {}
AppSnapshot(DartUtils::MagicNumber num)
const uint8_t * isolate_snapshot_data
const uint8_t * vm_snapshot_data
Definition main_impl.cc:56
const uint8_t * vm_snapshot_instructions
Definition main_impl.cc:57
const uint8_t * isolate_snapshot_instructions

◆ ~MappedAppSnapshot()

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

Definition at line 64 of file snapshot_utils.cc.

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

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 71 of file snapshot_utils.cc.

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

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