--- a/hotspot/src/share/vm/ci/ciMethodHandle.hpp Thu May 12 10:33:17 2011 -0700
+++ b/hotspot/src/share/vm/ci/ciMethodHandle.hpp Thu May 12 14:04:48 2011 -0700
@@ -35,35 +35,36 @@
class ciMethodHandle : public ciInstance {
private:
ciMethod* _callee;
+ ciMethod* _caller;
ciCallProfile* _profile;
// Return an adapter for this MethodHandle.
- ciMethod* get_adapter(bool is_invokedynamic) const;
+ ciMethod* get_adapter_impl(bool is_invokedynamic) const;
+ ciMethod* get_adapter( bool is_invokedynamic) const;
protected:
void print_impl(outputStream* st);
public:
- ciMethodHandle(instanceHandle h_i) : ciInstance(h_i) {};
+ ciMethodHandle(instanceHandle h_i) :
+ ciInstance(h_i),
+ _callee(NULL),
+ _caller(NULL),
+ _profile(NULL)
+ {}
// What kind of ciObject is this?
bool is_method_handle() const { return true; }
- ciMethod* callee() const { return _callee; }
- void set_callee(ciMethod* m) { _callee = m; }
-
- ciCallProfile* call_profile() const { return _profile; }
- void set_call_profile(ciCallProfile* profile) { _profile = profile; }
+ void set_callee(ciMethod* m) { _callee = m; }
+ void set_caller(ciMethod* m) { _caller = m; }
+ void set_call_profile(ciCallProfile* profile) { _profile = profile; }
// Return an adapter for a MethodHandle call.
- ciMethod* get_method_handle_adapter() const {
- return get_adapter(false);
- }
+ ciMethod* get_method_handle_adapter() const { return get_adapter(false); }
// Return an adapter for an invokedynamic call.
- ciMethod* get_invokedynamic_adapter() const {
- return get_adapter(true);
- }
+ ciMethod* get_invokedynamic_adapter() const { return get_adapter(true); }
};
#endif // SHARE_VM_CI_CIMETHODHANDLE_HPP