< prev index next >

src/hotspot/cpu/zero/vmreg_zero.cpp

Print this page

44 
45 bool VMRegImpl::is_Register() {
46   return value() >= 0 &&
47          value() < ConcreteRegisterImpl::max_gpr;
48 }
49 
50 bool VMRegImpl::is_FloatRegister() {
51   return value() >= ConcreteRegisterImpl::max_gpr &&
52          value() < ConcreteRegisterImpl::max_fpr;
53 }
54 
55 Register VMRegImpl::as_Register() {
56   assert(is_Register(), "must be");
57   return ::as_Register(value());
58 }
59 
60 FloatRegister VMRegImpl::as_FloatRegister() {
61   assert(is_FloatRegister(), "must be" );
62   return ::as_FloatRegister(value() - ConcreteRegisterImpl::max_gpr);
63 }
64 
65 VMReg VMRegImpl::vmStorageToVMReg(int type, int index) {
66   ShouldNotCallThis();
67   return VMRegImpl::Bad();
68 }

44 
45 bool VMRegImpl::is_Register() {
46   return value() >= 0 &&
47          value() < ConcreteRegisterImpl::max_gpr;
48 }
49 
50 bool VMRegImpl::is_FloatRegister() {
51   return value() >= ConcreteRegisterImpl::max_gpr &&
52          value() < ConcreteRegisterImpl::max_fpr;
53 }
54 
55 Register VMRegImpl::as_Register() {
56   assert(is_Register(), "must be");
57   return ::as_Register(value());
58 }
59 
60 FloatRegister VMRegImpl::as_FloatRegister() {
61   assert(is_FloatRegister(), "must be" );
62   return ::as_FloatRegister(value() - ConcreteRegisterImpl::max_gpr);
63 }





< prev index next >