src/share/vm/ci/ciConstant.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7088955 Sdiff src/share/vm/ci

src/share/vm/ci/ciConstant.hpp

Print this page


   1 /*
   2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 private:
  36   friend class ciEnv;
  37   friend class ciField;
  38 
  39   BasicType _type;
  40   union {
  41     jint      _int;
  42     jlong     _long;
  43     jint      _long_half[2];
  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) {


   1 /*
   2  * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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     jint      _long_half[2];
  45     jfloat    _float;
  46     jdouble   _double;
  47     ciObject* _object;
  48   } _value;
  49 
  50 public:
  51 
  52   ciConstant() {
  53     _type = T_ILLEGAL; _value._long = -1;
  54   }
  55   ciConstant(BasicType type, jint value) {


src/share/vm/ci/ciConstant.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File