vmreg_sparc.cpp revision 0:a61af66fc99e
13385Srgrimes/* 23385Srgrimes * Copyright 2006-2007 Sun Microsystems, Inc. All Rights Reserved. 33385Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 43385Srgrimes * 53385Srgrimes * This code is free software; you can redistribute it and/or modify it 63385Srgrimes * under the terms of the GNU General Public License version 2 only, as 73385Srgrimes * published by the Free Software Foundation. 83385Srgrimes * 93385Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 103385Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 113385Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 123385Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 133385Srgrimes * accompanied this code). 143385Srgrimes * 153385Srgrimes * You should have received a copy of the GNU General Public License version 163385Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 173385Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 183385Srgrimes * 193385Srgrimes * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 203385Srgrimes * CA 95054 USA or visit www.sun.com if you need additional information or 213385Srgrimes * have any questions. 223385Srgrimes * 233385Srgrimes */ 243385Srgrimes 253385Srgrimes#include "incls/_precompiled.incl" 263385Srgrimes#include "incls/_vmreg_sparc.cpp.incl" 273385Srgrimes 283385Srgrimes 293385Srgrimes 303385Srgrimesvoid VMRegImpl::set_regName() { 313385Srgrimes Register reg = ::as_Register(0); 3250477Speter int i; 333385Srgrimes for (i = 0; i < ConcreteRegisterImpl::max_gpr ; ) { 343385Srgrimes regName[i++ ] = reg->name(); 353385Srgrimes regName[i++ ] = reg->name(); 368876Srgrimes reg = reg->successor(); 373385Srgrimes } 385908Sbde 395908Sbde FloatRegister freg = ::as_FloatRegister(0); 405908Sbde for ( ; i < ConcreteRegisterImpl::max_fpr ; ) { 415908Sbde regName[i++] = freg->name(); 425908Sbde if (freg->encoding() > 31) { 435908Sbde regName[i++] = freg->name(); 445908Sbde } 455908Sbde freg = freg->successor(); 465908Sbde } 475908Sbde 485908Sbde for ( ; i < ConcreteRegisterImpl::number_of_registers ; i ++ ) { 4937550Sbde regName[i] = "NON-GPR-FPR"; 5037550Sbde } 5137550Sbde} 525908Sbde