src/share/vm/ci/ciCallProfile.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/ci/ciCallProfile.hpp Wed Jun 1 14:37:18 2011
--- new/src/share/vm/ci/ciCallProfile.hpp Wed Jun 1 14:37:18 2011
*** 34,43 ****
--- 34,44 ----
// at some call site
class ciCallProfile : StackObj {
private:
// Fields are initialized directly by ciMethod::call_profile_at_bci.
friend class ciMethod;
+ friend class ciMethodHandle;
enum { MorphismLimit = 2 }; // Max call site's morphism we care about
int _limit; // number of receivers have been determined
int _morphism; // determined call site's morphism
int _count; // # times has this call been executed
*** 56,69 ****
--- 57,70 ----
void add_receiver(ciKlass* receiver, int receiver_count);
public:
// Note: The following predicates return false for invalid profiles:
! bool has_receiver(int i) const { return _limit > i; }
! int morphism() const { return _morphism; }
! int count() const { return _count; }
int receiver_count(int i) {
assert(i < _limit, "out of Call Profile MorphismLimit");
return _receiver_count[i];
}
float receiver_prob(int i) {
src/share/vm/ci/ciCallProfile.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File