50 #define PATCH_BACK_ORIGINAL_MCODE \
63 *((uint16_t*) pr->
mpc) = (uint16_t) pr->
mcode;
76 uint16_t mcode = *((uint16_t*) pc);
79 return (mcode == 0x0b0f);
116 *((intptr_t *) (ra + 2)) = (intptr_t) fi->
value;
154 int clen = SIZEOF_VOID_P;
159 *((
u4 *) (ra + 6 + 2)) = (
u4) (fi->
offset + 4);
199 int clen = SIZEOF_VOID_P;
211 *((
u4 *) (ra + 6 + 2)) = (
u4) (fi->
offset + 4);
251 int clen = SIZEOF_VOID_P;
263 *((
u4 *) (ra + 10 + 2)) = (
u4) (fi->
offset + 4);
512 *((
s4 *) (ra + 2 + 6 + 2)) =
594 *((
s4 *) (ra + 6 + 6 + 2 + 6 + 6 + 2)) =
597 md_icacheflush((
void*) (ra + 6 + 2), SIZEOF_VOID_P + 6 + 6 + 6 + 2);
639 *((
s4 *) (ra + 6 + 6 + 2 + 6 + 2)) =
bool patcher_invokestatic_special(patchref_t *pr)
bool patcher_get_putstatic(patchref_t *pr)
bool patcher_resolve_classref_to_classinfo(patchref_t *pr)
bool patcher_invokeinterface(patchref_t *pr)
#define PATCHER_CALL_SIZE
bool patcher_instanceof_class(patchref_t *pr)
bool patcher_putfield(patchref_t *pr)
#define BUILTIN_arraycheckcast
#define IS_2_WORD_TYPE(a)
void patcher_patch_code(patchref_t *pr)
bool patcher_invokevirtual(patchref_t *pr)
bool patcher_aconst(patchref_t *pr)
bool patcher_resolve_classref_to_flags(patchref_t *pr)
bool patcher_checkcast_interface(patchref_t *pr)
bool initialize_class(classinfo *c)
bool patcher_putfieldconst(patchref_t *pr)
bool patcher_get_putfield(patchref_t *pr)
fieldinfo * resolve_field_eager(unresolved_field *ref)
bool patcher_checkcast_instanceof_flags(patchref_t *pr)
methodinfo * resolve_method_eager(unresolved_method *ref)
bool patcher_builtin_arraycheckcast(patchref_t *pr)
classinfo * resolve_classref_eager(constant_classref *ref)
bool patcher_builtin_multianewarray(patchref_t *pr)
static void md_icacheflush(void *addr, int nbytes)
bool patcher_is_valid_trap_instruction_at(void *pc)
Check if the trap instruction at the given PC is valid.
bool patcher_getfield(patchref_t *pr)
bool patcher_checkcast_class(patchref_t *pr)
bool patcher_resolve_classref_to_vftbl(patchref_t *pr)
bool patcher_instanceof_interface(patchref_t *pr)