dex++ 0.3.1
C++ and C API reference
Loading...
Searching...
No Matches
dex::ParameterRegister Struct Reference

An incoming parameter and the register that holds it on method entry. More...

#include <analysis/method.hpp>

Public Attributes

uint16_t reg
 First register holding the parameter (low half if wide).
 
std::string_view type
 Descriptor of the declared type, such as "I" or "Ljava/lang/String;"; the declaring class for this.
 
bool is_this
 True for the implicit receiver of an instance method.
 
bool is_wide
 True for long / double (occupies reg and reg + 1).
 

Detailed Description

An incoming parameter and the register that holds it on method entry.

Dalvik places incoming arguments in the last ins_size registers of the frame. This resolves that convention: the implicit this of an instance method comes first, then declared parameters in order, with wide (long / double) parameters occupying a register pair (reg and reg + 1).

Member Data Documentation

◆ reg

uint16_t dex::ParameterRegister::reg

First register holding the parameter (low half if wide).

◆ type

std::string_view dex::ParameterRegister::type

Descriptor of the declared type, such as "I" or "Ljava/lang/String;"; the declaring class for this.

Valid for the context's lifetime.

◆ is_this

bool dex::ParameterRegister::is_this

True for the implicit receiver of an instance method.

◆ is_wide

bool dex::ParameterRegister::is_wide

True for long / double (occupies reg and reg + 1).


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