src/hotspot/share/classfile/javaClasses.hpp
changeset 51807 3221f5e14866
parent 51698 74dde8b66b7f
child 51823 2a51125b2794
equal deleted inserted replaced
51806:1ecc914fb707 51807:3221f5e14866
   600   static int modifiers_offset;
   600   static int modifiers_offset;
   601   static int signature_offset;
   601   static int signature_offset;
   602   static int annotations_offset;
   602   static int annotations_offset;
   603   static int parameter_annotations_offset;
   603   static int parameter_annotations_offset;
   604   static int annotation_default_offset;
   604   static int annotation_default_offset;
   605   static int type_annotations_offset;
   605 
   606 
   606   static void compute_offsets();
   607   static void compute_offsets();
       
   608 
       
   609  public:
   607  public:
   610   static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
   608   static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
   611 
   609 
   612   // Allocation
   610   // Allocation
   613   static Handle create(TRAPS);
   611   static Handle create(TRAPS);
   614 
   612 
   615   // Accessors
   613   // Accessors
   616   static oop clazz(oop reflect);
   614   static oop clazz(oop reflect);
   617   static void set_clazz(oop reflect, oop value);
   615   static void set_clazz(oop reflect, oop value);
   618 
   616 
   619   static oop name(oop method);
       
   620   static void set_name(oop method, oop value);
   617   static void set_name(oop method, oop value);
   621 
   618 
   622   static oop return_type(oop method);
   619   static oop return_type(oop method);
   623   static void set_return_type(oop method, oop value);
   620   static void set_return_type(oop method, oop value);
   624 
   621 
   625   static oop parameter_types(oop method);
   622   static oop parameter_types(oop method);
   626   static void set_parameter_types(oop method, oop value);
   623   static void set_parameter_types(oop method, oop value);
   627 
   624 
   628   static oop exception_types(oop method);
       
   629   static void set_exception_types(oop method, oop value);
       
   630 
       
   631   static int slot(oop reflect);
   625   static int slot(oop reflect);
   632   static void set_slot(oop reflect, int value);
   626   static void set_slot(oop reflect, int value);
   633 
   627 
   634   static int modifiers(oop method);
   628   static void set_exception_types(oop method, oop value);
   635   static void set_modifiers(oop method, int value);
   629   static void set_modifiers(oop method, int value);
   636 
       
   637   static bool has_signature_field();
       
   638   static oop signature(oop method);
       
   639   static void set_signature(oop method, oop value);
   630   static void set_signature(oop method, oop value);
   640 
       
   641   static bool has_annotations_field();
       
   642   static oop annotations(oop method);
       
   643   static void set_annotations(oop method, oop value);
   631   static void set_annotations(oop method, oop value);
   644 
       
   645   static bool has_parameter_annotations_field();
       
   646   static oop parameter_annotations(oop method);
       
   647   static void set_parameter_annotations(oop method, oop value);
   632   static void set_parameter_annotations(oop method, oop value);
   648 
       
   649   static bool has_annotation_default_field();
       
   650   static oop annotation_default(oop method);
       
   651   static void set_annotation_default(oop method, oop value);
   633   static void set_annotation_default(oop method, oop value);
   652 
       
   653   static bool has_type_annotations_field();
       
   654   static oop type_annotations(oop method);
       
   655   static void set_type_annotations(oop method, oop value);
       
   656 
   634 
   657   // Debugging
   635   // Debugging
   658   friend class JavaClasses;
   636   friend class JavaClasses;
   659 };
   637 };
   660 
   638 
   671   static int slot_offset;
   649   static int slot_offset;
   672   static int modifiers_offset;
   650   static int modifiers_offset;
   673   static int signature_offset;
   651   static int signature_offset;
   674   static int annotations_offset;
   652   static int annotations_offset;
   675   static int parameter_annotations_offset;
   653   static int parameter_annotations_offset;
   676   static int type_annotations_offset;
   654 
   677 
   655   static void compute_offsets();
   678   static void compute_offsets();
       
   679 
       
   680  public:
   656  public:
   681   static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
   657   static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
   682 
   658 
   683   // Allocation
   659   // Allocation
   684   static Handle create(TRAPS);
   660   static Handle create(TRAPS);
   688   static void set_clazz(oop reflect, oop value);
   664   static void set_clazz(oop reflect, oop value);
   689 
   665 
   690   static oop parameter_types(oop constructor);
   666   static oop parameter_types(oop constructor);
   691   static void set_parameter_types(oop constructor, oop value);
   667   static void set_parameter_types(oop constructor, oop value);
   692 
   668 
   693   static oop exception_types(oop constructor);
       
   694   static void set_exception_types(oop constructor, oop value);
       
   695 
       
   696   static int slot(oop reflect);
   669   static int slot(oop reflect);
   697   static void set_slot(oop reflect, int value);
   670   static void set_slot(oop reflect, int value);
   698 
   671 
   699   static int modifiers(oop constructor);
   672   static void set_exception_types(oop constructor, oop value);
   700   static void set_modifiers(oop constructor, int value);
   673   static void set_modifiers(oop constructor, int value);
   701 
       
   702   static bool has_signature_field();
       
   703   static oop signature(oop constructor);
       
   704   static void set_signature(oop constructor, oop value);
   674   static void set_signature(oop constructor, oop value);
   705 
       
   706   static bool has_annotations_field();
       
   707   static oop annotations(oop constructor);
       
   708   static void set_annotations(oop constructor, oop value);
   675   static void set_annotations(oop constructor, oop value);
   709 
       
   710   static bool has_parameter_annotations_field();
       
   711   static oop parameter_annotations(oop method);
       
   712   static void set_parameter_annotations(oop method, oop value);
   676   static void set_parameter_annotations(oop method, oop value);
   713 
       
   714   static bool has_type_annotations_field();
       
   715   static oop type_annotations(oop constructor);
       
   716   static void set_type_annotations(oop constructor, oop value);
       
   717 
   677 
   718   // Debugging
   678   // Debugging
   719   friend class JavaClasses;
   679   friend class JavaClasses;
   720 };
   680 };
   721 
   681 
   731   static int type_offset;
   691   static int type_offset;
   732   static int slot_offset;
   692   static int slot_offset;
   733   static int modifiers_offset;
   693   static int modifiers_offset;
   734   static int signature_offset;
   694   static int signature_offset;
   735   static int annotations_offset;
   695   static int annotations_offset;
   736   static int type_annotations_offset;
       
   737 
   696 
   738   static void compute_offsets();
   697   static void compute_offsets();
   739 
   698 
   740  public:
   699  public:
   741   static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
   700   static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
   757   static void set_slot(oop reflect, int value);
   716   static void set_slot(oop reflect, int value);
   758 
   717 
   759   static int modifiers(oop field);
   718   static int modifiers(oop field);
   760   static void set_modifiers(oop field, int value);
   719   static void set_modifiers(oop field, int value);
   761 
   720 
   762   static bool has_signature_field();
       
   763   static oop signature(oop constructor);
       
   764   static void set_signature(oop constructor, oop value);
   721   static void set_signature(oop constructor, oop value);
   765 
       
   766   static bool has_annotations_field();
       
   767   static oop annotations(oop constructor);
       
   768   static void set_annotations(oop constructor, oop value);
   722   static void set_annotations(oop constructor, oop value);
   769 
       
   770   static bool has_parameter_annotations_field();
       
   771   static oop parameter_annotations(oop method);
       
   772   static void set_parameter_annotations(oop method, oop value);
   723   static void set_parameter_annotations(oop method, oop value);
   773 
       
   774   static bool has_annotation_default_field();
       
   775   static oop annotation_default(oop method);
       
   776   static void set_annotation_default(oop method, oop value);
   724   static void set_annotation_default(oop method, oop value);
   777 
       
   778   static bool has_type_annotations_field();
       
   779   static oop type_annotations(oop field);
       
   780   static void set_type_annotations(oop field, oop value);
       
   781 
   725 
   782   // Debugging
   726   // Debugging
   783   friend class JavaClasses;
   727   friend class JavaClasses;
   784 };
   728 };
   785 
   729