Mercurial > hg > truffle
comparison src/share/vm/classfile/javaClasses.hpp @ 7462:ade95d680b42
8004728: Add hotspot support for parameter reflection
Summary: Add hotspot support for parameter reflection
Reviewed-by: acorn, jrose, coleenp
Contributed-by: eric.mccorkle@oracle.com
author | coleenp |
---|---|
date | Tue, 08 Jan 2013 14:01:36 -0500 |
parents | 4daebd4cc1dd |
children | 989155e2d07a ed6154d7d259 b14da2e6f2dc |
comparison
equal
deleted
inserted
replaced
7460:6c3f47d964f3 | 7462:ade95d680b42 |
---|---|
727 | 727 |
728 // Debugging | 728 // Debugging |
729 friend class JavaClasses; | 729 friend class JavaClasses; |
730 }; | 730 }; |
731 | 731 |
732 class java_lang_reflect_Parameter { | |
733 private: | |
734 // Note that to reduce dependencies on the JDK we compute these | |
735 // offsets at run-time. | |
736 static int name_offset; | |
737 static int modifiers_offset; | |
738 static int index_offset; | |
739 static int executable_offset; | |
740 | |
741 static void compute_offsets(); | |
742 | |
743 public: | |
744 // Allocation | |
745 static Handle create(TRAPS); | |
746 | |
747 // Accessors | |
748 static oop name(oop field); | |
749 static void set_name(oop field, oop value); | |
750 | |
751 static int index(oop reflect); | |
752 static void set_index(oop reflect, int value); | |
753 | |
754 static int modifiers(oop reflect); | |
755 static void set_modifiers(oop reflect, int value); | |
756 | |
757 static oop executable(oop constructor); | |
758 static void set_executable(oop constructor, oop value); | |
759 | |
760 friend class JavaClasses; | |
761 }; | |
762 | |
732 // Interface to sun.reflect.ConstantPool objects | 763 // Interface to sun.reflect.ConstantPool objects |
733 class sun_reflect_ConstantPool { | 764 class sun_reflect_ConstantPool { |
734 private: | 765 private: |
735 // Note that to reduce dependencies on the JDK we compute these | 766 // Note that to reduce dependencies on the JDK we compute these |
736 // offsets at run-time. | 767 // offsets at run-time. |