26 #ifndef _PATCHER_COMMON_HPP
27 #define _PATCHER_COMMON_HPP
97 #define PATCHER_resolve_class (functionptr) patcher_resolve_class
100 #define PATCHER_initialize_class (functionptr) patcher_initialize_class
103 #define PATCHER_resolve_classref_to_classinfo (functionptr) patcher_resolve_classref_to_classinfo
106 #define PATCHER_resolve_classref_to_vftbl (functionptr) patcher_resolve_classref_to_vftbl
109 #define PATCHER_resolve_classref_to_index (functionptr) patcher_resolve_classref_to_index
112 #define PATCHER_resolve_classref_to_flags (functionptr) patcher_resolve_classref_to_flags
115 #define PATCHER_resolve_native_function (functionptr) patcher_resolve_native_function
118 #define PATCHER_breakpoint (functionptr) patcher_breakpoint
123 #define PATCHER_get_putstatic (functionptr) patcher_get_putstatic
125 #if defined(__I386__)
128 #define PATCHER_getfield (functionptr) patcher_getfield
131 #define PATCHER_putfield (functionptr) patcher_putfield
136 #define PATCHER_get_putfield (functionptr) patcher_get_putfield
138 #if defined(__I386__) || defined(__X86_64__)
141 #define PATCHER_putfieldconst (functionptr) patcher_putfieldconst
146 #define PATCHER_invokestatic_special (functionptr) patcher_invokestatic_special
149 #define PATCHER_invokevirtual (functionptr) patcher_invokevirtual
152 #define PATCHER_invokeinterface (functionptr) patcher_invokeinterface
155 #define PATCHER_checkcast_interface (functionptr) patcher_checkcast_interface
158 #define PATCHER_instanceof_interface (functionptr) patcher_instanceof_interface
160 #if defined(__S390__)
163 #define PATCHER_checkcast_instanceof_interface (functionptr) patcher_checkcast_instanceof_interface
167 #if defined(__I386__)
170 #define PATCHER_aconst (functionptr) patcher_aconst
173 #define PATCHER_builtin_multianewarray (functionptr) patcher_builtin_multianewarray
176 #define PATCHER_builtin_arraycheckcast (functionptr) patcher_builtin_arraycheckcast
179 #define PATCHER_checkcast_instanceof_flags (functionptr) patcher_checkcast_instanceof_flags
182 #define PATCHER_checkcast_class (functionptr) patcher_checkcast_class
185 #define PATCHER_instanceof_class (functionptr) patcher_instanceof_class
189 #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_instanceof_class(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.
bool patcher_putfield(patchref_t *pr)
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_aconst(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_putfieldconst(patchref_t *pr)
bool patcher_get_putfield(patchref_t *pr)
bool patcher_initialize_class(patchref_t *pr)
bool patcher_checkcast_instanceof_flags(patchref_t *pr)
bool patcher_breakpoint(patchref_t *pr)
Deals with breakpoint instructions (ICMD_BREAKPOINT) compiled into a JIT method.
bool patcher_builtin_arraycheckcast(patchref_t *pr)
bool patcher_builtin_multianewarray(patchref_t *pr)
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)
void patcher_list_free(codeinfo *code)
bool patcher_instanceof_interface(patchref_t *pr)
bool patcher_is_patched_at(void *pc)