< prev index next >
src/hotspot/cpu/aarch64/disassembler_aarch64.hpp
Print this page
rev 54542 : 8213084: Rework and enhance Print[Opto]Assembly output
Reviewed-by:
*** 32,37 ****
--- 32,57 ----
static const char* pd_cpu_opts() {
return "";
}
+ // Returns address of n-th instruction preceding addr,
+ // NULL if no preceding instruction can be found.
+ // On ARM(aarch64), we assume a constant instruction length.
+ // It might be beneficial to check "is_readable" as we do on ppc and s390.
+ static address find_prev_instr(address addr, int n_instr) {
+ return addr - Assembler::instruction_size*n_instr;
+ }
+
+ // special-case instruction decoding.
+ // There may be cases where the binutils disassembler doesn't do
+ // the perfect job. In those cases, decode_instruction0 may kick in
+ // and do it right.
+ // If nothing had to be done, just return "here", otherwise return "here + instr_len(here)"
+ static address decode_instruction0(address here, outputStream* st, address virtual_begin = NULL) {
+ return here;
+ }
+
+ // platform-specific instruction annotations (like value of loaded constants)
+ static void annotate(address pc, outputStream* st) { };
+
#endif // CPU_AARCH64_DISASSEMBLER_AARCH64_HPP
< prev index next >