Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/method.hpp @ 7457:35431a769282
8004823: Add VM support for type annotation reflection
Reviewed-by: dholmes, coleenp
Contributed-by: joel.franck@oracle.com
author | stefank |
---|---|
date | Thu, 20 Dec 2012 10:22:19 +0100 |
parents | 5505fbbae3d3 |
children | 4daebd4cc1dd |
comparison
equal
deleted
inserted
replaced
7456:7d42f3b08300 | 7457:35431a769282 |
---|---|
226 if (ik->annotations() == NULL) { | 226 if (ik->annotations() == NULL) { |
227 return NULL; | 227 return NULL; |
228 } | 228 } |
229 return ik->annotations()->get_method_default_annotations_of(method_idnum()); | 229 return ik->annotations()->get_method_default_annotations_of(method_idnum()); |
230 } | 230 } |
231 AnnotationArray* type_annotations() const { | |
232 InstanceKlass* ik = method_holder(); | |
233 Annotations* type_annos = ik->type_annotations(); | |
234 if (type_annos == NULL) | |
235 return NULL; | |
236 return type_annos->get_method_annotations_of(method_idnum()); | |
237 } | |
231 | 238 |
232 #ifdef CC_INTERP | 239 #ifdef CC_INTERP |
233 void set_result_index(BasicType type); | 240 void set_result_index(BasicType type); |
234 int result_index() { return _result_index; } | 241 int result_index() { return _result_index; } |
235 #endif | 242 #endif |
792 // Helper routine used for method sorting | 799 // Helper routine used for method sorting |
793 static void sort_methods(Array<Method*>* methods, | 800 static void sort_methods(Array<Method*>* methods, |
794 Array<AnnotationArray*>* methods_annotations, | 801 Array<AnnotationArray*>* methods_annotations, |
795 Array<AnnotationArray*>* methods_parameter_annotations, | 802 Array<AnnotationArray*>* methods_parameter_annotations, |
796 Array<AnnotationArray*>* methods_default_annotations, | 803 Array<AnnotationArray*>* methods_default_annotations, |
804 Array<AnnotationArray*>* methods_type_annotations, | |
797 bool idempotent = false); | 805 bool idempotent = false); |
798 | 806 |
799 // size of parameters | 807 // size of parameters |
800 void set_size_of_parameters(int size) { _size_of_parameters = size; } | 808 void set_size_of_parameters(int size) { _size_of_parameters = size; } |
801 | 809 |