1.1 --- a/src/share/vm/ci/ciMethodHandle.hpp Mon May 09 19:45:52 2011 -0700 1.2 +++ b/src/share/vm/ci/ciMethodHandle.hpp Tue May 10 00:45:03 2011 -0700 1.3 @@ -25,6 +25,7 @@ 1.4 #ifndef SHARE_VM_CI_CIMETHODHANDLE_HPP 1.5 #define SHARE_VM_CI_CIMETHODHANDLE_HPP 1.6 1.7 +#include "ci/ciCallProfile.hpp" 1.8 #include "ci/ciInstance.hpp" 1.9 #include "prims/methodHandles.hpp" 1.10 1.11 @@ -33,7 +34,8 @@ 1.12 // The class represents a java.lang.invoke.MethodHandle object. 1.13 class ciMethodHandle : public ciInstance { 1.14 private: 1.15 - ciMethod* _callee; 1.16 + ciMethod* _callee; 1.17 + ciCallProfile* _profile; 1.18 1.19 // Return an adapter for this MethodHandle. 1.20 ciMethod* get_adapter(bool is_invokedynamic) const; 1.21 @@ -50,6 +52,9 @@ 1.22 ciMethod* callee() const { return _callee; } 1.23 void set_callee(ciMethod* m) { _callee = m; } 1.24 1.25 + ciCallProfile* call_profile() const { return _profile; } 1.26 + void set_call_profile(ciCallProfile* profile) { _profile = profile; } 1.27 + 1.28 // Return an adapter for a MethodHandle call. 1.29 ciMethod* get_method_handle_adapter() const { 1.30 return get_adapter(false);