hotspot/src/share/vm/oops/instanceKlass.hpp
changeset 32189 5264b560ab1b
parent 31046 d01ad7a0ecb0
child 32606 fdaa30d06ada
equal deleted inserted replaced
32184:2997b317d990 32189:5264b560ab1b
   501 
   501 
   502   // find a local method, but skip static methods
   502   // find a local method, but skip static methods
   503   Method* find_instance_method(Symbol* name, Symbol* signature);
   503   Method* find_instance_method(Symbol* name, Symbol* signature);
   504   static Method* find_instance_method(Array<Method*>* methods, Symbol* name, Symbol* signature);
   504   static Method* find_instance_method(Array<Method*>* methods, Symbol* name, Symbol* signature);
   505 
   505 
       
   506   // find a local method (returns NULL if not found)
       
   507   Method* find_local_method(Symbol* name, Symbol* signature,
       
   508                            OverpassLookupMode overpass_mode,
       
   509                            StaticLookupMode static_mode,
       
   510                            PrivateLookupMode private_mode) const;
       
   511 
       
   512   // find a local method from given methods array (returns NULL if not found)
       
   513   static Method* find_local_method(Array<Method*>* methods,
       
   514                            Symbol* name, Symbol* signature,
       
   515                            OverpassLookupMode overpass_mode,
       
   516                            StaticLookupMode static_mode,
       
   517                            PrivateLookupMode private_mode);
       
   518 
   506   // true if method matches signature and conforms to skipping_X conditions.
   519   // true if method matches signature and conforms to skipping_X conditions.
   507   static bool method_matches(Method* m, Symbol* signature, bool skipping_overpass, bool skipping_static);
   520   static bool method_matches(Method* m, Symbol* signature, bool skipping_overpass, bool skipping_static, bool skipping_private);
   508 
   521 
   509   // find a local method index in default_methods (returns -1 if not found)
   522   // find a local method index in methods or default_methods (returns -1 if not found)
   510   static int find_method_index(Array<Method*>* methods, Symbol* name, Symbol* signature,
   523   static int find_method_index(Array<Method*>* methods,
   511                                OverpassLookupMode overpass_mode, StaticLookupMode static_mode);
   524                                Symbol* name, Symbol* signature,
       
   525                                OverpassLookupMode overpass_mode,
       
   526                                StaticLookupMode static_mode,
       
   527                                PrivateLookupMode private_mode);
   512 
   528 
   513   // lookup operation (returns NULL if not found)
   529   // lookup operation (returns NULL if not found)
   514   Method* uncached_lookup_method(Symbol* name, Symbol* signature, OverpassLookupMode overpass_mode) const;
   530   Method* uncached_lookup_method(Symbol* name, Symbol* signature, OverpassLookupMode overpass_mode) const;
   515 
   531 
   516   // lookup a method in all the interfaces that this class implements
   532   // lookup a method in all the interfaces that this class implements
  1151   // Returns the array class with this class as element type
  1167   // Returns the array class with this class as element type
  1152   Klass* array_klass_impl(bool or_null, TRAPS);
  1168   Klass* array_klass_impl(bool or_null, TRAPS);
  1153 
  1169 
  1154   // find a local method (returns NULL if not found)
  1170   // find a local method (returns NULL if not found)
  1155   Method* find_method_impl(Symbol* name, Symbol* signature,
  1171   Method* find_method_impl(Symbol* name, Symbol* signature,
  1156                            OverpassLookupMode overpass_mode, StaticLookupMode static_mode) const;
  1172                            OverpassLookupMode overpass_mode,
  1157   static Method* find_method_impl(Array<Method*>* methods, Symbol* name, Symbol* signature,
  1173                            StaticLookupMode static_mode,
  1158                                   OverpassLookupMode overpass_mode, StaticLookupMode static_mode);
  1174                            PrivateLookupMode private_mode) const;
       
  1175   static Method* find_method_impl(Array<Method*>* methods,
       
  1176                                   Symbol* name, Symbol* signature,
       
  1177                                   OverpassLookupMode overpass_mode,
       
  1178                                   StaticLookupMode static_mode,
       
  1179                                   PrivateLookupMode private_mode);
  1159 
  1180 
  1160   // Free CHeap allocated fields.
  1181   // Free CHeap allocated fields.
  1161   void release_C_heap_structures();
  1182   void release_C_heap_structures();
  1162 
  1183 
  1163   // RedefineClasses support
  1184   // RedefineClasses support