26 #ifndef _PATCHER_COMMON_HPP
27 #define _PATCHER_COMMON_HPP
110 #define PATCHER_resolve_class (functionptr) patcher_resolve_class
113 #define PATCHER_initialize_class (functionptr) patcher_initialize_class
116 #define PATCHER_resolve_classref_to_classinfo (functionptr) patcher_resolve_classref_to_classinfo
119 #define PATCHER_resolve_classref_to_vftbl (functionptr) patcher_resolve_classref_to_vftbl
122 #define PATCHER_resolve_classref_to_index (functionptr) patcher_resolve_classref_to_index
125 #define PATCHER_resolve_classref_to_flags (functionptr) patcher_resolve_classref_to_flags
128 #define PATCHER_resolve_native_function (functionptr) patcher_resolve_native_function
131 #define PATCHER_breakpoint (functionptr) patcher_breakpoint
136 #define PATCHER_get_putstatic (functionptr) patcher_get_putstatic
139 #define PATCHER_get_putfield (functionptr) patcher_get_putfield
142 #define PATCHER_invokestatic_special (functionptr) patcher_invokestatic_special
145 #define PATCHER_invokevirtual (functionptr) patcher_invokevirtual
148 #define PATCHER_invokeinterface (functionptr) patcher_invokeinterface
151 #define PATCHER_checkcast_interface (functionptr) patcher_checkcast_interface
154 #define PATCHER_instanceof_interface (functionptr) patcher_instanceof_interface
156 #if defined(__S390__)
159 #define PATCHER_checkcast_instanceof_interface (functionptr) patcher_checkcast_instanceof_interface
163 #endif // _PATCHER_COMMON_HPP
bool patcher_handler(u1 *pc)
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)
bool patcher_checkcast_instanceof_interface(patchref_t *pr)
bool patcher_resolve_native_function(patchref_t *pr)
bool patcher_is_patched(patchref_t *pr)
patchref_t * patcher_add_patch_ref(jitdata *jd, functionptr patcher, void *ref, s4 disp)
void patcher_resolve(codeinfo *code)
Resolve all patchers in the current JIT run.
patcher_function_list_t patcher_function_list[]
void(* functionptr)(void)
bool patcher_resolve_class(patchref_t *pr)
void patcher_list_show(codeinfo *code)
Show the content of the whole patcher reference list for debugging purposes.
void patcher_patch_code(patchref_t *pr)
void patcher_list_create(codeinfo *code)
bool patcher_invokevirtual(patchref_t *pr)
bool patcher_resolve_classref_to_index(patchref_t *pr)
bool patcher_resolve_classref_to_flags(patchref_t *pr)
bool patcher_checkcast_interface(patchref_t *pr)
void patcher_list_reset(codeinfo *code)
bool patcher_get_putfield(patchref_t *pr)
struct patcher_function_list_t patcher_function_list_t
bool patcher_initialize_class(patchref_t *pr)
bool patcher_breakpoint(patchref_t *pr)
Deals with breakpoint instructions (ICMD_BREAKPOINT) compiled into a JIT method.
bool patcher_is_valid_trap_instruction_at(void *pc)
Check if the trap instruction at the given PC is valid.
bool patcher_resolve_classref_to_vftbl(patchref_t *pr)
void patcher_list_free(codeinfo *code)
bool patcher_instanceof_interface(patchref_t *pr)
bool patcher_is_patched_at(void *pc)