< prev index next >

src/hotspot/share/ci/ciMetadata.hpp

Print this page




  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_CIMETADATA_HPP
  26 #define SHARE_VM_CI_CIMETADATA_HPP
  27 
  28 #include "ci/ciBaseObject.hpp"
  29 #include "ci/ciClassList.hpp"
  30 #include "memory/allocation.hpp"
  31 #include "runtime/handles.hpp"
  32 #include "runtime/jniHandles.hpp"
  33 
  34 // ciMetadata
  35 //
  36 // Compiler interface to metadata object in the VM, not Java object.
  37 
  38 class ciMetadata: public ciBaseObject {
  39   CI_PACKAGE_ACCESS
  40   friend class ciEnv;
  41 
  42  protected:
  43   Metadata* _metadata;
  44 
  45   ciMetadata(): _metadata(NULL) {}
  46   ciMetadata(Metadata* o): _metadata(o) {}
  47 
  48   virtual bool is_classless() const         { return false; }
  49  public:
  50   bool is_loaded() const { return _metadata != NULL || is_classless(); }




  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_CIMETADATA_HPP
  26 #define SHARE_VM_CI_CIMETADATA_HPP
  27 
  28 #include "ci/ciBaseObject.hpp"
  29 #include "ci/ciClassList.hpp"

  30 #include "runtime/handles.hpp"
  31 #include "runtime/jniHandles.hpp"
  32 
  33 // ciMetadata
  34 //
  35 // Compiler interface to metadata object in the VM, not Java object.
  36 
  37 class ciMetadata: public ciBaseObject {
  38   CI_PACKAGE_ACCESS
  39   friend class ciEnv;
  40 
  41  protected:
  42   Metadata* _metadata;
  43 
  44   ciMetadata(): _metadata(NULL) {}
  45   ciMetadata(Metadata* o): _metadata(o) {}
  46 
  47   virtual bool is_classless() const         { return false; }
  48  public:
  49   bool is_loaded() const { return _metadata != NULL || is_classless(); }


< prev index next >