src/hotspot/cpu/aarch64/assembler_aarch64.hpp
changeset 54960 e46fe26d7f77
parent 54453 7b5e2bc79e68
child 55054 78e49883146f
--- a/src/hotspot/cpu/aarch64/assembler_aarch64.hpp	Tue May 21 11:45:37 2019 +0200
+++ b/src/hotspot/cpu/aarch64/assembler_aarch64.hpp	Tue May 21 15:51:35 2019 +0200
@@ -629,6 +629,14 @@
 
   enum { instruction_size = 4 };
 
+  //---<  calculate length of instruction  >---
+  // We just use the values set above.
+  // instruction must start at passed address
+  static unsigned int instr_len(unsigned char *instr) { return instruction_size; }
+
+  //---<  longest instructions  >---
+  static unsigned int instr_maxlen() { return instruction_size; }
+
   Address adjust(Register base, int offset, bool preIncrement) {
     if (preIncrement)
       return Address(Pre(base, offset));