src/share/vm/prims/methodHandles.hpp

Print this page




 221 
 222 //------------------------------------------------------------------------------
 223 // MethodHandlesAdapterGenerator
 224 //
 225 class MethodHandlesAdapterGenerator : public StubCodeGenerator {
 226 public:
 227   MethodHandlesAdapterGenerator(CodeBuffer* code) : StubCodeGenerator(code, PrintMethodHandleStubs) {}
 228 
 229   void generate();
 230 };
 231 
 232 //------------------------------------------------------------------------------
 233 // MemberNameTable
 234 //
 235 
 236 class MemberNameTable : public GrowableArray<jweak> {
 237  public:
 238   MemberNameTable(int methods_cnt);
 239   ~MemberNameTable();
 240 
 241   void add_member_name(int index, jweak mem_name_ref);
 242   oop  get_member_name(int index);
 243 
 244  public:
 245   // RedefineClasses() API support:
 246   // If a MemberName refers to old_method then update it
 247   // to refer to new_method.
 248   void adjust_method_entries(methodOop* old_methods, methodOop* new_methods,
 249                              int methods_length, bool *trace_name_printed);
 250  private:
 251   oop find_member_name_by_method(methodOop old_method);
 252 };
 253 
 254 #endif // SHARE_VM_PRIMS_METHODHANDLES_HPP


 221 
 222 //------------------------------------------------------------------------------
 223 // MethodHandlesAdapterGenerator
 224 //
 225 class MethodHandlesAdapterGenerator : public StubCodeGenerator {
 226 public:
 227   MethodHandlesAdapterGenerator(CodeBuffer* code) : StubCodeGenerator(code, PrintMethodHandleStubs) {}
 228 
 229   void generate();
 230 };
 231 
 232 //------------------------------------------------------------------------------
 233 // MemberNameTable
 234 //
 235 
 236 class MemberNameTable : public GrowableArray<jweak> {
 237  public:
 238   MemberNameTable(int methods_cnt);
 239   ~MemberNameTable();
 240 
 241   void add_member_name(jweak mem_name_ref);

 242 
 243  public:
 244   // RedefineClasses() API support:
 245   // If a MemberName refers to old_method then update it
 246   // to refer to new_method.
 247   void adjust_method_entries(methodOop* old_methods, methodOop* new_methods,
 248                              int methods_length, bool *trace_name_printed);


 249 };
 250 
 251 #endif // SHARE_VM_PRIMS_METHODHANDLES_HPP