|
| Instruction22cs (std::vector< uint8_t > &bytecode, std::size_t index, Parser *parser) |
|
std::uint8_t | get_register_A () const |
| Get the index of the first register used in the instruction.
|
|
TYPES::Operand | get_register_A_type () const |
| Get the type for the register A.
|
|
std::uint8_t | get_register_B () const |
| Get the index of the second register used in the instruction.
|
|
TYPES::Operand | get_register_B_type () const |
| Get the type for the register B.
|
|
std::uint16_t | get_field_offset () const |
| Get the offset for the field.
|
|
TYPES::Operand | get_field_offset_type () const |
| Get the type for the offset, probably KIND.
|
|
const std::string & | get_field_string () const |
| Get a string representation of the Field.
|
|
FieldID * | get_field () const |
| Check if the idx is from a field and return a FieldID.
|
|
virtual std::string | print_instruction () |
| Return a string with the representation of the instruction.
|
|
virtual void | print_instruction (std::ostream &os) |
| Print the instruction on a given stream.
|
|
| Instruction (std::vector< uint8_t > &bytecode, std::size_t index, dexinsttype_t instruction_type) |
| Constructor of the Instruction, here is applied the parsing of the opcodes.
|
|
| Instruction (std::vector< uint8_t > &bytecode, std::size_t index, dexinsttype_t instruction_type, std::uint32_t length) |
|
virtual | ~Instruction ()=default |
| Destructor of the instruction.
|
|
virtual TYPES::Kind | get_kind () const |
| Get the kind of instruction, use a DalvikOpcodes function.
|
|
virtual dexinsttype_t | get_instruction_type () const |
| Get the instruction type from the enum.
|
|
virtual std::uint32_t | get_instruction_length () const |
| Get the length of the instruction.
|
|
virtual std::uint32_t | get_instruction_opcode () const |
| Get the opcode of the instruction.
|
|
virtual void | set_address (std::uint64_t address) |
| Set the address of the instruction.
|
|
virtual std::uint64_t | get_address () const |
| Get the address of the instruction.
|
|
virtual const std::span< std::uint8_t > & | get_opcodes () |
| Return the op codes in raw from the instruction.
|
|
virtual bool | is_terminator () |
| Check if the instruction is a terminator (branch, ret, multibranch)
|
|
virtual bool | has_side_effects () const |
| Instruction has or can have some side effect.
|
|
virtual bool | may_throw () const |
| May throw an exception.
|
|
Format suggested for statically linked field access instructions or Types. Example: op vA, vB, fieldoff@CCCC *-QUICK methods.