< prev index next >

src/share/vm/runtime/fieldDescriptor.cpp

Print this page
rev 7800 : [mq]: cleanupOopInlineHpp


  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "memory/resourceArea.hpp"
  29 #include "memory/universe.inline.hpp"
  30 #include "oops/annotations.hpp"
  31 #include "oops/instanceKlass.hpp"

  32 #include "oops/fieldStreams.hpp"
  33 #include "runtime/fieldDescriptor.hpp"
  34 #include "runtime/handles.inline.hpp"
  35 #include "runtime/signature.hpp"
  36 
  37 
  38 oop fieldDescriptor::loader() const {
  39   return _cp->pool_holder()->class_loader();
  40 }
  41 
  42 Symbol* fieldDescriptor::generic_signature() const {
  43   if (!has_generic_signature()) {
  44     return NULL;
  45   }
  46 
  47   int idx = 0;
  48   InstanceKlass* ik = field_holder();
  49   for (AllFieldStream fs(ik); !fs.done(); fs.next()) {
  50     if (idx == _index) {
  51       return fs.generic_signature();




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "memory/resourceArea.hpp"
  29 #include "memory/universe.inline.hpp"
  30 #include "oops/annotations.hpp"
  31 #include "oops/instanceKlass.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "oops/fieldStreams.hpp"
  34 #include "runtime/fieldDescriptor.hpp"
  35 #include "runtime/handles.inline.hpp"
  36 #include "runtime/signature.hpp"
  37 
  38 
  39 oop fieldDescriptor::loader() const {
  40   return _cp->pool_holder()->class_loader();
  41 }
  42 
  43 Symbol* fieldDescriptor::generic_signature() const {
  44   if (!has_generic_signature()) {
  45     return NULL;
  46   }
  47 
  48   int idx = 0;
  49   InstanceKlass* ik = field_holder();
  50   for (AllFieldStream fs(ik); !fs.done(); fs.next()) {
  51     if (idx == _index) {
  52       return fs.generic_signature();


< prev index next >