src/share/vm/ci/ciCallProfile.hpp

changeset 2949
f918d6096e23
parent 2325
c760f78e0a53
child 3105
c26de9aef2ed
     1.1 --- a/src/share/vm/ci/ciCallProfile.hpp	Wed Jun 01 23:25:31 2011 -0700
     1.2 +++ b/src/share/vm/ci/ciCallProfile.hpp	Thu Jun 02 13:36:11 2011 -0700
     1.3 @@ -36,6 +36,7 @@
     1.4  private:
     1.5    // Fields are initialized directly by ciMethod::call_profile_at_bci.
     1.6    friend class ciMethod;
     1.7 +  friend class ciMethodHandle;
     1.8  
     1.9    enum { MorphismLimit = 2 }; // Max call site's morphism we care about
    1.10    int  _limit;                // number of receivers have been determined
    1.11 @@ -58,10 +59,10 @@
    1.12  
    1.13  public:
    1.14    // Note:  The following predicates return false for invalid profiles:
    1.15 -  bool      has_receiver(int i) { return _limit > i; }
    1.16 -  int       morphism()          { return _morphism; }
    1.17 +  bool      has_receiver(int i) const { return _limit > i; }
    1.18 +  int       morphism() const          { return _morphism; }
    1.19  
    1.20 -  int       count()             { return _count; }
    1.21 +  int       count() const             { return _count; }
    1.22    int       receiver_count(int i)  {
    1.23      assert(i < _limit, "out of Call Profile MorphismLimit");
    1.24      return _receiver_count[i];

mercurial