Mercurial > hg > truffle
comparison src/share/vm/opto/optoreg.hpp @ 4137:04b9a2566eec
Merge with hsx23/hotspot.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 17 Dec 2011 21:40:27 +0100 |
parents | f6f3bb0ee072 |
children | a7114d3d712e |
comparison
equal
deleted
inserted
replaced
3737:9dc19b7d89a3 | 4137:04b9a2566eec |
---|---|
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; } |