Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/constantPool.hpp @ 22448:bd786aba15a7
moved (newly) public method into public section
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 21 Aug 2015 11:29:46 +0200 |
parents | 096c224171c4 |
children |
comparison
equal
deleted
inserted
replaced
22447:ecbf949a9dcd | 22448:bd786aba15a7 |
---|---|
674 Symbol* signature_ref_at(int which) { return impl_signature_ref_at(which, false); } | 674 Symbol* signature_ref_at(int which) { return impl_signature_ref_at(which, false); } |
675 | 675 |
676 int klass_ref_index_at(int which) { return impl_klass_ref_index_at(which, false); } | 676 int klass_ref_index_at(int which) { return impl_klass_ref_index_at(which, false); } |
677 int name_and_type_ref_index_at(int which) { return impl_name_and_type_ref_index_at(which, false); } | 677 int name_and_type_ref_index_at(int which) { return impl_name_and_type_ref_index_at(which, false); } |
678 | 678 |
679 int remap_instruction_operand_from_cache(int operand); // operand must be biased by CPCACHE_INDEX_TAG | |
680 | |
679 // Lookup for entries consisting of (name_index, signature_index) | 681 // Lookup for entries consisting of (name_index, signature_index) |
680 int name_ref_index_at(int which_nt); // == low-order jshort of name_and_type_at(which_nt) | 682 int name_ref_index_at(int which_nt); // == low-order jshort of name_and_type_at(which_nt) |
681 int signature_ref_index_at(int which_nt); // == high-order jshort of name_and_type_at(which_nt) | 683 int signature_ref_index_at(int which_nt); // == high-order jshort of name_and_type_at(which_nt) |
682 | 684 |
683 BasicType basic_type_for_signature_at(int which); | 685 BasicType basic_type_for_signature_at(int which); |
795 Symbol* impl_name_ref_at(int which, bool uncached); | 797 Symbol* impl_name_ref_at(int which, bool uncached); |
796 Symbol* impl_signature_ref_at(int which, bool uncached); | 798 Symbol* impl_signature_ref_at(int which, bool uncached); |
797 int impl_klass_ref_index_at(int which, bool uncached); | 799 int impl_klass_ref_index_at(int which, bool uncached); |
798 int impl_name_and_type_ref_index_at(int which, bool uncached); | 800 int impl_name_and_type_ref_index_at(int which, bool uncached); |
799 | 801 |
800 public: | |
801 int remap_instruction_operand_from_cache(int operand); // operand must be biased by CPCACHE_INDEX_TAG | |
802 | |
803 private: | |
804 // Used while constructing constant pool (only by ClassFileParser) | 802 // Used while constructing constant pool (only by ClassFileParser) |
805 jint klass_index_at(int which) { | 803 jint klass_index_at(int which) { |
806 assert(tag_at(which).is_klass_index(), "Corrupted constant pool"); | 804 assert(tag_at(which).is_klass_index(), "Corrupted constant pool"); |
807 return *int_at_addr(which); | 805 return *int_at_addr(which); |
808 } | 806 } |