void C2Compiler::initialize_runtime() { // Check assumptions used while running ADLC Compile::adlc_verification(); assert(REG_COUNT <= ConcreteRegisterImpl::number_of_registers, "incompatible register counts"); for (int i = 0; i < ConcreteRegisterImpl::number_of_registers ; i++ ) { OptoReg::vm2opto[i] = OptoReg::Bad; } for( OptoReg::Name i=OptoReg::Name(0); i<OptoReg::Name(REG_COUNT); i = OptoReg::add(i,1) ) { VMReg r = OptoReg::as_VMReg(i); if (r->is_valid()) { OptoReg::vm2opto[r->value()] = i; } } // Check that runtime and architecture description agree on callee-saved-floats bool callee_saved_floats = false; for( OptoReg::Name i=OptoReg::Name(0); i<OptoReg::Name(_last_Mach_Reg); i = OptoReg::add(i,1) ) { // Is there a callee-saved float or double? if( register_save_policy[i] == 'E' /* callee-saved */ && (register_save_type[i] == Op_RegF || register_save_type[i] == Op_RegD) ) { callee_saved_floats = true; } } DEBUG_ONLY( Node::init_NodeProperty(); )
// Return true if single register, even if the pair is really just adjacent stack slots bool is_single_reg() const { return (_first->is_valid()) && (_first->value() + 1 == _second->value()); }