Flutter Engine
The Flutter Engine
|
#include <image_snapshot.h>
Public Member Functions | |
BlobImageWriter (Thread *thread, NonStreamingWriteStream *vm_instructions, NonStreamingWriteStream *isolate_instructions, Elf *debug_elf=nullptr, Elf *elf=nullptr) | |
Public Member Functions inherited from dart::ImageWriter | |
ImageWriter (Thread *thread, bool generates_assembly) | |
virtual | ~ImageWriter () |
void | ResetOffsets () |
void | PrepareForSerialization (GrowableArray< ImageWriterCommand > *commands) |
bool | IsROSpace () const |
int32_t | GetTextOffsetFor (InstructionsPtr instructions, CodePtr code) |
uint32_t | GetDataOffsetFor (ObjectPtr raw_object) |
uint32_t | AddBytesToData (uint8_t *bytes, intptr_t length) |
void | Write (NonStreamingWriteStream *clustered_stream, bool vm) |
intptr_t | data_size () const |
intptr_t | text_size () const |
intptr_t | GetTextObjectCount () const |
void | GetTrampolineInfo (intptr_t *count, intptr_t *size) const |
void | DumpStatistics () |
void | SetProfileWriter (V8SnapshotProfileWriter *profile_writer) |
void | ClearProfileWriter () |
void | TraceInstructions (const Instructions &instructions) |
const char * | ObjectTypeForProfile (const Object &object) const |
Public Member Functions inherited from dart::ValueObject | |
ValueObject () | |
~ValueObject () | |
Private Member Functions | |
virtual void | WriteBss (bool vm) |
virtual void | WriteROData (NonStreamingWriteStream *clustered_stream, bool vm) |
virtual bool | EnterSection (ProgramSection section, bool vm, intptr_t alignment, intptr_t *alignment_padding=nullptr) |
virtual void | ExitSection (ProgramSection name, bool vm, intptr_t size) |
virtual intptr_t | WriteTargetWord (word value) |
virtual intptr_t | WriteBytes (const void *bytes, intptr_t size) |
virtual intptr_t | Align (intptr_t alignment, intptr_t offset, intptr_t position) |
virtual void | FrameUnwindPrologue () |
virtual void | FrameUnwindEpilogue () |
Additional Inherited Members | |
Public Types inherited from dart::ImageWriter | |
enum class | ProgramSection { Text , Data , Bss , BuildId } |
Static Public Member Functions inherited from dart::ImageWriter | |
static intptr_t | SizeInSnapshot (ObjectPtr object) |
static intptr_t | SizeInSnapshot (const Object &object) |
static const char * | TagObjectTypeAsReadOnly (Zone *zone, const char *type) |
Static Public Attributes inherited from dart::ImageWriter | |
static constexpr intptr_t | kBssAlignment = compiler::target::kWordSize |
static constexpr intptr_t | kRODataAlignment = kObjectStartAlignment |
static constexpr intptr_t | kTextAlignment = kObjectStartAlignment |
static constexpr intptr_t | kNumProgramSections |
Protected Member Functions inherited from dart::ImageWriter | |
virtual void | WriteBss (bool vm)=0 |
virtual void | WriteROData (NonStreamingWriteStream *clustered_stream, bool vm) |
void | WriteText (bool vm) |
void | DumpInstructionStats () |
void | DumpInstructionsSizes () |
virtual bool | EnterSection (ProgramSection name, bool vm, intptr_t alignment, intptr_t *alignment_padding=nullptr)=0 |
virtual void | ExitSection (ProgramSection name, bool vm, intptr_t size)=0 |
virtual void | FrameUnwindPrologue ()=0 |
virtual void | FrameUnwindEpilogue ()=0 |
virtual intptr_t | WriteTargetWord (word value)=0 |
virtual intptr_t | WriteBytes (const void *bytes, intptr_t size)=0 |
virtual intptr_t | Align (intptr_t alignment, intptr_t offset, intptr_t position)=0 |
template<typename T > | |
intptr_t | WriteFixed (T value) |
intptr_t | AlignWithBreakInstructions (intptr_t alignment, intptr_t offset) |
Static Protected Member Functions inherited from dart::ImageWriter | |
static const char * | SectionSymbol (ProgramSection section, bool vm) |
static uword | GetMarkedTags (classid_t cid, intptr_t size, bool is_canonical=false) |
static uword | GetMarkedTags (const Object &obj) |
Protected Attributes inherited from dart::ImageWriter | |
Thread *const | thread_ |
Zone *const | zone_ |
intptr_t | next_data_offset_ |
intptr_t | next_text_offset_ |
GrowableArray< ObjectData > | objects_ |
GrowableArray< InstructionsData > | instructions_ |
IdSpace | offset_space_ = IdSpace::kSnapshot |
V8SnapshotProfileWriter * | profile_writer_ = nullptr |
const char *const | image_type_ |
const char *const | instructions_section_type_ |
const char *const | instructions_type_ |
const char *const | trampoline_type_ |
const char *const | padding_type_ |
Definition at line 845 of file image_snapshot.h.
dart::BlobImageWriter::BlobImageWriter | ( | Thread * | thread, |
NonStreamingWriteStream * | vm_instructions, | ||
NonStreamingWriteStream * | isolate_instructions, | ||
Elf * | debug_elf = nullptr , |
||
Elf * | elf = nullptr |
||
) |
Definition at line 1758 of file image_snapshot.cc.
|
privatevirtual |
Implements dart::ImageWriter.
Definition at line 1878 of file image_snapshot.cc.
|
privatevirtual |
Implements dart::ImageWriter.
Definition at line 1810 of file image_snapshot.cc.
|
privatevirtual |
Implements dart::ImageWriter.
Definition at line 1857 of file image_snapshot.cc.
|
inlineprivatevirtual |
|
inlineprivatevirtual |
|
privatevirtual |
Implements dart::ImageWriter.
Definition at line 1782 of file image_snapshot.cc.
|
privatevirtual |
Implements dart::ImageWriter.
Definition at line 1777 of file image_snapshot.cc.
|
privatevirtual |
Reimplemented from dart::ImageWriter.
Definition at line 1789 of file image_snapshot.cc.
|
privatevirtual |