Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Public Attributes | List of all members
dart::ImageWriterCommand Struct Reference

#include <image_snapshot.h>

Public Types

enum  Opcode { InsertInstructionOfCode , InsertBytesOfTrampoline , InsertPadding }
 

Public Member Functions

 ImageWriterCommand (intptr_t expected_offset, CodePtr code)
 
 ImageWriterCommand (intptr_t expected_offset, uint8_t *trampoline_bytes, intptr_t trampoline_length)
 
 ImageWriterCommand (intptr_t expected_offset, intptr_t padding_length)
 

Public Attributes

intptr_t expected_offset
 
Opcode op
 
union {
   struct {
      CodePtr   code
 
   }   insert_instruction_of_code
 
   struct {
      uint8_t *   buffer
 
      intptr_t   buffer_length
 
   }   insert_trampoline_bytes
 
   struct {
      intptr_t   padding_length
 
   }   insert_padding
 
}; 
 

Detailed Description

Definition at line 203 of file image_snapshot.h.

Member Enumeration Documentation

◆ Opcode

Enumerator
InsertInstructionOfCode 
InsertBytesOfTrampoline 
InsertPadding 

Definition at line 204 of file image_snapshot.h.

Constructor & Destructor Documentation

◆ ImageWriterCommand() [1/3]

dart::ImageWriterCommand::ImageWriterCommand ( intptr_t  expected_offset,
CodePtr  code 
)
inline

◆ ImageWriterCommand() [2/3]

dart::ImageWriterCommand::ImageWriterCommand ( intptr_t  expected_offset,
uint8_t *  trampoline_bytes,
intptr_t  trampoline_length 
)
inline

Definition at line 215 of file image_snapshot.h.

220 insert_trampoline_bytes({trampoline_bytes, trampoline_length}) {}
struct dart::ImageWriterCommand::@154::@157 insert_trampoline_bytes

◆ ImageWriterCommand() [3/3]

dart::ImageWriterCommand::ImageWriterCommand ( intptr_t  expected_offset,
intptr_t  padding_length 
)
inline

Definition at line 222 of file image_snapshot.h.

Member Data Documentation

◆ 

union { ... } dart::ImageWriterCommand::@155

◆ buffer

uint8_t* dart::ImageWriterCommand::buffer

Definition at line 237 of file image_snapshot.h.

◆ buffer_length

intptr_t dart::ImageWriterCommand::buffer_length

Definition at line 238 of file image_snapshot.h.

◆ code

CodePtr dart::ImageWriterCommand::code

Definition at line 234 of file image_snapshot.h.

◆ expected_offset

intptr_t dart::ImageWriterCommand::expected_offset

Definition at line 229 of file image_snapshot.h.

◆ 

struct { ... } dart::ImageWriterCommand::insert_instruction_of_code

◆ 

struct { ... } dart::ImageWriterCommand::insert_padding

◆ 

struct { ... } dart::ImageWriterCommand::insert_trampoline_bytes

◆ op

Opcode dart::ImageWriterCommand::op

Definition at line 231 of file image_snapshot.h.

◆ padding_length

intptr_t dart::ImageWriterCommand::padding_length

Definition at line 242 of file image_snapshot.h.


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