hotspot/src/cpu/aarch64/vm/nativeInst_aarch64.hpp
changeset 36329 06727ae6971e
parent 36060 de5c192c2eac
child 37466 287c4ebd11b0
--- a/hotspot/src/cpu/aarch64/vm/nativeInst_aarch64.hpp	Thu Feb 25 14:47:08 2016 +0000
+++ b/hotspot/src/cpu/aarch64/vm/nativeInst_aarch64.hpp	Wed Feb 24 09:22:45 2016 -0800
@@ -105,13 +105,20 @@
   inline friend NativeInstruction* nativeInstruction_at(address address);
 
   static bool is_adrp_at(address instr);
+
   static bool is_ldr_literal_at(address instr);
+
+  bool is_ldr_literal() {
+    return is_ldr_literal_at(addr_at(0));
+  }
+
   static bool is_ldrw_to_zr(address instr);
 
   static bool is_call_at(address instr) {
     const uint32_t insn = (*(uint32_t*)instr);
     return (insn >> 26) == 0b100101;
   }
+
   bool is_call() {
     return is_call_at(addr_at(0));
   }