< prev index next >

src/hotspot/cpu/x86/vmreg_x86.cpp

Print this page

49   XMMRegister xreg = ::as_XMMRegister(0);
50   for (; i < ConcreteRegisterImpl::max_xmm;) {
51     for (int j = 0 ; j < XMMRegisterImpl::max_slots_per_register ; j++) {
52       regName[i++] = xreg->name();
53     }
54     xreg = xreg->successor();
55   }
56 
57   KRegister kreg = ::as_KRegister(0);
58   for (; i < ConcreteRegisterImpl::max_kpr;) {
59     for (int j = 0; j < KRegisterImpl::max_slots_per_register; j++) {
60       regName[i++] = kreg->name();
61     }
62     kreg = kreg->successor();
63   }
64 
65   for ( ; i < ConcreteRegisterImpl::number_of_registers ; i ++ ) {
66     regName[i] = "NON-GPR-FPR-XMM-KREG";
67   }
68 }
69 
70 #define INTEGER_TYPE 0
71 #define VECTOR_TYPE 1
72 #define X87_TYPE 2
73 #define STACK_TYPE 3
74 
75 //TODO: Case for KRegisters
76 VMReg VMRegImpl::vmStorageToVMReg(int type, int index) {
77   switch(type) {
78     case INTEGER_TYPE: return ::as_Register(index)->as_VMReg();
79     case VECTOR_TYPE: return ::as_XMMRegister(index)->as_VMReg();
80     case STACK_TYPE: return VMRegImpl::stack2reg(index LP64_ONLY(* 2)); // numbering on x64 goes per 64-bits
81   }
82   return VMRegImpl::Bad();
83 }

49   XMMRegister xreg = ::as_XMMRegister(0);
50   for (; i < ConcreteRegisterImpl::max_xmm;) {
51     for (int j = 0 ; j < XMMRegisterImpl::max_slots_per_register ; j++) {
52       regName[i++] = xreg->name();
53     }
54     xreg = xreg->successor();
55   }
56 
57   KRegister kreg = ::as_KRegister(0);
58   for (; i < ConcreteRegisterImpl::max_kpr;) {
59     for (int j = 0; j < KRegisterImpl::max_slots_per_register; j++) {
60       regName[i++] = kreg->name();
61     }
62     kreg = kreg->successor();
63   }
64 
65   for ( ; i < ConcreteRegisterImpl::number_of_registers ; i ++ ) {
66     regName[i] = "NON-GPR-FPR-XMM-KREG";
67   }
68 }















< prev index next >