< prev index next >

src/hotspot/share/ci/ciConstant.hpp

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_CI_CICONSTANT_HPP
  26 #define SHARE_VM_CI_CICONSTANT_HPP
  27 
  28 #include "ci/ciClassList.hpp"
  29 #include "ci/ciNullObject.hpp"
  30 
  31 // ciConstant
  32 //
  33 // This class represents a constant value.
  34 class ciConstant VALUE_OBJ_CLASS_SPEC {
  35   friend class VMStructs;
  36 private:
  37   friend class ciEnv;
  38   friend class ciField;
  39 
  40   BasicType _type;
  41   union {
  42     jint      _int;
  43     jlong     _long;
  44     jfloat    _float;
  45     jdouble   _double;
  46     ciObject* _object;
  47   } _value;
  48 
  49 public:
  50 
  51   ciConstant() {
  52     _type = T_ILLEGAL; _value._long = -1;
  53   }
  54   ciConstant(BasicType type, jint value) {




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_CI_CICONSTANT_HPP
  26 #define SHARE_VM_CI_CICONSTANT_HPP
  27 
  28 #include "ci/ciClassList.hpp"
  29 #include "ci/ciNullObject.hpp"
  30 
  31 // ciConstant
  32 //
  33 // This class represents a constant value.
  34 class ciConstant {
  35   friend class VMStructs;
  36 private:
  37   friend class ciEnv;
  38   friend class ciField;
  39 
  40   BasicType _type;
  41   union {
  42     jint      _int;
  43     jlong     _long;
  44     jfloat    _float;
  45     jdouble   _double;
  46     ciObject* _object;
  47   } _value;
  48 
  49 public:
  50 
  51   ciConstant() {
  52     _type = T_ILLEGAL; _value._long = -1;
  53   }
  54   ciConstant(BasicType type, jint value) {


< prev index next >