< prev index next >

src/hotspot/cpu/x86/nativeInst_x86.hpp

Print this page
*** 126,11 ***
    address return_address() const            { return addr_at(return_address_offset); }
    address destination() const;
    void  set_destination(address dest)       {
  #ifdef AMD64
      intptr_t disp = dest - return_address();
!     guarantee(disp == (intptr_t)(jint)disp, "must be 32-bit offset");
  #endif // AMD64
      set_int_at(displacement_offset, (int)(dest - return_address()));
    }
    // Returns whether the 4-byte displacement operand is 4-byte aligned.
    bool  is_displacement_aligned();
--- 126,11 ---
    address return_address() const            { return addr_at(return_address_offset); }
    address destination() const;
    void  set_destination(address dest)       {
  #ifdef AMD64
      intptr_t disp = dest - return_address();
!     guarantee(disp == (intptr_t)(jint)disp, "must be 32-bit offset: " INTPTR_FORMAT ", dest: " INTPTR_FORMAT ", ret_pc: " INTPTR_FORMAT, disp, p2i(dest), p2i(return_address()));
  #endif // AMD64
      set_int_at(displacement_offset, (int)(dest - return_address()));
    }
    // Returns whether the 4-byte displacement operand is 4-byte aligned.
    bool  is_displacement_aligned();
< prev index next >