< prev index next >

src/hotspot/cpu/aarch64/vmreg_aarch64.hpp

Print this page
*** 37,24 ***
  inline bool is_PRegister() {
    return value() >= ConcreteRegisterImpl::max_fpr && value() < ConcreteRegisterImpl::max_pr;
  }
  
  inline Register as_Register() {
!   assert( is_Register(), "must be");
-   // Yuk
    return ::as_Register(value() / RegisterImpl::max_slots_per_register);
  }
  
  inline FloatRegister as_FloatRegister() {
!   assert( is_FloatRegister() && is_even(value()), "must be" );
-   // Yuk
    return ::as_FloatRegister((value() - ConcreteRegisterImpl::max_gpr) /
                              FloatRegisterImpl::max_slots_per_register);
  }
  
  inline PRegister as_PRegister() {
!   assert( is_PRegister(), "must be" );
    return ::as_PRegister((value() - ConcreteRegisterImpl::max_fpr) /
                          PRegisterImpl::max_slots_per_register);
  }
  
  inline bool is_concrete() {
--- 37,22 ---
  inline bool is_PRegister() {
    return value() >= ConcreteRegisterImpl::max_fpr && value() < ConcreteRegisterImpl::max_pr;
  }
  
  inline Register as_Register() {
!   assert(is_Register(), "must be");
    return ::as_Register(value() / RegisterImpl::max_slots_per_register);
  }
  
  inline FloatRegister as_FloatRegister() {
!   assert(is_FloatRegister() && is_even(value()), "must be");
    return ::as_FloatRegister((value() - ConcreteRegisterImpl::max_gpr) /
                              FloatRegisterImpl::max_slots_per_register);
  }
  
  inline PRegister as_PRegister() {
!   assert(is_PRegister(), "must be");
    return ::as_PRegister((value() - ConcreteRegisterImpl::max_fpr) /
                          PRegisterImpl::max_slots_per_register);
  }
  
  inline bool is_concrete() {
< prev index next >