comparison src/share/vm/opto/optoreg.hpp @ 3939:f6f3bb0ee072

7088955: add C2 IR support to the SA Reviewed-by: kvn
author never
date Sun, 11 Sep 2011 14:48:24 -0700
parents f95d63e2154a
children a7114d3d712e
comparison
equal deleted inserted replaced
3938:e6b1331a51d2 3939:f6f3bb0ee072
1 /* 1 /*
2 * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
170 // so that a OptoReg->VMReg->OptoReg would reproduce ther original OptoReg. As it 170 // so that a OptoReg->VMReg->OptoReg would reproduce ther original OptoReg. As it
171 // stands if you convert a flag (condition code) to a VMReg you will get VMRegImpl::Bad 171 // stands if you convert a flag (condition code) to a VMReg you will get VMRegImpl::Bad
172 // and converting that will return OptoReg::Bad losing the identity of the OptoReg. 172 // and converting that will return OptoReg::Bad losing the identity of the OptoReg.
173 173
174 class OptoRegPair { 174 class OptoRegPair {
175 friend class VMStructs;
175 private: 176 private:
176 short _second; 177 short _second;
177 short _first; 178 short _first;
178 public: 179 public:
179 void set_bad ( ) { _second = OptoReg::Bad; _first = OptoReg::Bad; } 180 void set_bad ( ) { _second = OptoReg::Bad; _first = OptoReg::Bad; }