src/share/vm/ci/ciMethodHandle.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
6998541 Cdiff src/share/vm/ci/ciMethodHandle.hpp
src/share/vm/ci/ciMethodHandle.hpp
Print this page
*** 33,69 ****
//
// The class represents a java.lang.invoke.MethodHandle object.
class ciMethodHandle : public ciInstance {
private:
ciMethod* _callee;
ciCallProfile* _profile;
// Return an adapter for this MethodHandle.
! ciMethod* get_adapter(bool is_invokedynamic) const;
protected:
void print_impl(outputStream* st);
public:
! ciMethodHandle(instanceHandle h_i) : ciInstance(h_i) {};
// 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; }
// Return an adapter for a MethodHandle call.
! 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);
! }
};
#endif // SHARE_VM_CI_CIMETHODHANDLE_HPP
--- 33,70 ----
//
// The class represents a java.lang.invoke.MethodHandle object.
class ciMethodHandle : public ciInstance {
private:
ciMethod* _callee;
+ ciMethod* _caller;
ciCallProfile* _profile;
// Return an adapter for this MethodHandle.
! 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),
! _callee(NULL),
! _caller(NULL),
! _profile(NULL)
! {}
// What kind of ciObject is this?
bool is_method_handle() const { return true; }
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); }
// Return an adapter for an invokedynamic call.
! ciMethod* get_invokedynamic_adapter() const { return get_adapter(true); }
};
#endif // SHARE_VM_CI_CIMETHODHANDLE_HPP
src/share/vm/ci/ciMethodHandle.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File