src/share/vm/ci/ciSymbol.hpp

changeset 4037
da91efe96a93
parent 3969
1d7922586cf6
child 4267
bd7a7ce2e264
     1.1 --- a/src/share/vm/ci/ciSymbol.hpp	Fri Aug 31 16:39:35 2012 -0700
     1.2 +++ b/src/share/vm/ci/ciSymbol.hpp	Sat Sep 01 13:25:18 2012 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -25,6 +25,7 @@
    1.11  #ifndef SHARE_VM_CI_CISYMBOL_HPP
    1.12  #define SHARE_VM_CI_CISYMBOL_HPP
    1.13  
    1.14 +#include "ci/ciBaseObject.hpp"
    1.15  #include "ci/ciObject.hpp"
    1.16  #include "ci/ciObjectFactory.hpp"
    1.17  #include "classfile/vmSymbols.hpp"
    1.18 @@ -34,9 +35,8 @@
    1.19  //
    1.20  // This class represents a Symbol* in the HotSpot virtual
    1.21  // machine.
    1.22 -class ciSymbol : public ResourceObj {
    1.23 +class ciSymbol : public ciBaseObject {
    1.24    Symbol* _symbol;
    1.25 -  uint _ident;
    1.26  
    1.27    CI_PACKAGE_ACCESS
    1.28    // These friends all make direct use of get_symbol:
    1.29 @@ -65,11 +65,7 @@
    1.30    // Make a ciSymbol from a C string (implementation).
    1.31    static ciSymbol* make_impl(const char* s);
    1.32  
    1.33 -  void set_ident(uint id) { _ident = id; }
    1.34  public:
    1.35 -  // A number unique to this object.
    1.36 -  uint ident() { return _ident; }
    1.37 -
    1.38    // The enumeration ID from vmSymbols, or vmSymbols::NO_SID if none.
    1.39    vmSymbols::SID sid() const { return _sid; }
    1.40  
    1.41 @@ -105,6 +101,8 @@
    1.42      _symbol->print();
    1.43    }
    1.44  
    1.45 +  virtual bool is_symbol() const       { return true; }
    1.46 +
    1.47    // Are two ciSymbols equal?
    1.48    bool equals(ciSymbol* obj) { return this->_symbol == obj->get_symbol(); }
    1.49  

mercurial