equal
deleted
inserted
replaced
327 // have this embedded field. |
327 // have this embedded field. |
328 // |
328 // |
329 |
329 |
330 friend class SystemDictionary; |
330 friend class SystemDictionary; |
331 |
331 |
|
332 static bool _disable_method_binary_search; |
|
333 |
332 public: |
334 public: |
333 u2 loader_type() { |
335 u2 loader_type() { |
334 return _misc_flags & loader_type_bits(); |
336 return _misc_flags & loader_type_bits(); |
335 } |
337 } |
336 |
338 |
561 return instanceOopDesc::contains_field_offset(offset, nonstatic_field_size()); |
563 return instanceOopDesc::contains_field_offset(offset, nonstatic_field_size()); |
562 } |
564 } |
563 |
565 |
564 bool find_local_field_from_offset(int offset, bool is_static, fieldDescriptor* fd) const; |
566 bool find_local_field_from_offset(int offset, bool is_static, fieldDescriptor* fd) const; |
565 bool find_field_from_offset(int offset, bool is_static, fieldDescriptor* fd) const; |
567 bool find_field_from_offset(int offset, bool is_static, fieldDescriptor* fd) const; |
|
568 |
|
569 private: |
|
570 static int quick_search(const Array<Method*>* methods, const Symbol* name); |
|
571 |
|
572 public: |
|
573 static void disable_method_binary_search() { |
|
574 _disable_method_binary_search = true; |
|
575 } |
566 |
576 |
567 // find a local method (returns NULL if not found) |
577 // find a local method (returns NULL if not found) |
568 Method* find_method(const Symbol* name, const Symbol* signature) const; |
578 Method* find_method(const Symbol* name, const Symbol* signature) const; |
569 static Method* find_method(const Array<Method*>* methods, |
579 static Method* find_method(const Array<Method*>* methods, |
570 const Symbol* name, |
580 const Symbol* name, |