92 pc = ((uint8_t *) ra) - 2;
96 opcode = *((uint16_t *) pc);
121 disp = *((int32_t *) (pc - 4));
125 pa = ((uint8_t *) mptr) + disp;
148 uint8_t*
xpc = (uint8_t*) _xpc;
175 if ((opc == 0x8b) && (mod == 0) && (rm == 5)) {
205 #if defined(ENABLE_REPLACEMENT)
206 void md_patch_replacement_point(
u1 *
pc,
u1 *savedmcode,
bool revert)
212 *(
u2*)(pc) = *(
u2*)(savedmcode);
216 *(
u2*)(savedmcode) = *(
u2*)(pc);
intptr_t value
Value (numeric or address) passed with the trap.
#define M_ALD_MEM_GET_OPC(p)
#define M_ALD_MEM_GET_REG(p)
Contains information about a decoded trap instruction.
alloc::set< EdgeType >::type mod
typedef void(JNICALL *jvmtiEventSingleStep)(jvmtiEnv *jvmti_env
#define M_ALD_MEM_GET_DISP(p)
int type
Specific trap type (see md-trap.h).
void * md_jit_method_patch_address(void *pv, void *ra, void *mptr)
#define M_ALD_MEM_GET_MOD(p)
bool md_trap_decode(trapinfo_t *trp, int sig, void *xpc, executionstate_t *es)
Decode the trap instruction at the given PC.
uintptr_t intregs[INT_REG_CNT]
void vm_abort_disassemble(void *pc, int count, const char *text,...)
bool patcher_is_valid_trap_instruction_at(void *pc)
Check if the trap instruction at the given PC is valid.
#define M_ALD_MEM_GET_RM(p)