src/share/vm/ci/ciMethodHandle.hpp

changeset 2903
fabcf26ee72f
parent 2898
e2a92dd0d3d2
child 2949
f918d6096e23
     1.1 --- a/src/share/vm/ci/ciMethodHandle.hpp	Thu May 12 10:33:17 2011 -0700
     1.2 +++ b/src/share/vm/ci/ciMethodHandle.hpp	Thu May 12 14:04:48 2011 -0700
     1.3 @@ -35,35 +35,36 @@
     1.4  class ciMethodHandle : public ciInstance {
     1.5  private:
     1.6    ciMethod*      _callee;
     1.7 +  ciMethod*      _caller;
     1.8    ciCallProfile* _profile;
     1.9  
    1.10    // Return an adapter for this MethodHandle.
    1.11 -  ciMethod* get_adapter(bool is_invokedynamic) const;
    1.12 +  ciMethod* get_adapter_impl(bool is_invokedynamic) const;
    1.13 +  ciMethod* get_adapter(     bool is_invokedynamic) const;
    1.14  
    1.15  protected:
    1.16    void print_impl(outputStream* st);
    1.17  
    1.18  public:
    1.19 -  ciMethodHandle(instanceHandle h_i) : ciInstance(h_i) {};
    1.20 +  ciMethodHandle(instanceHandle h_i) :
    1.21 +    ciInstance(h_i),
    1.22 +    _callee(NULL),
    1.23 +    _caller(NULL),
    1.24 +    _profile(NULL)
    1.25 +  {}
    1.26  
    1.27    // What kind of ciObject is this?
    1.28    bool is_method_handle() const { return true; }
    1.29  
    1.30 -  ciMethod* callee() const { return _callee; }
    1.31 -  void  set_callee(ciMethod* m) { _callee = m; }
    1.32 -
    1.33 -  ciCallProfile*     call_profile() const                 { return _profile;           }
    1.34 -  void           set_call_profile(ciCallProfile* profile) {        _profile = profile; }
    1.35 +  void set_callee(ciMethod* m)                  { _callee  = m;       }
    1.36 +  void set_caller(ciMethod* m)                  { _caller  = m;       }
    1.37 +  void set_call_profile(ciCallProfile* profile) { _profile = profile; }
    1.38  
    1.39    // Return an adapter for a MethodHandle call.
    1.40 -  ciMethod* get_method_handle_adapter() const {
    1.41 -    return get_adapter(false);
    1.42 -  }
    1.43 +  ciMethod* get_method_handle_adapter() const { return get_adapter(false); }
    1.44  
    1.45    // Return an adapter for an invokedynamic call.
    1.46 -  ciMethod* get_invokedynamic_adapter() const {
    1.47 -    return get_adapter(true);
    1.48 -  }
    1.49 +  ciMethod* get_invokedynamic_adapter() const { return get_adapter(true);  }
    1.50  };
    1.51  
    1.52  #endif // SHARE_VM_CI_CIMETHODHANDLE_HPP

mercurial