hotspot/src/share/vm/oops/cpCache.cpp
changeset 24926 5ea835dfafaa
parent 24459 ebd373039673
child 25325 e3af4e02b0d5
child 25351 7c198a690050
equal deleted inserted replaced
24924:f4f18b588249 24926:5ea835dfafaa
   405   return NULL;
   405   return NULL;
   406 }
   406 }
   407 
   407 
   408 
   408 
   409 oop ConstantPoolCacheEntry::appendix_if_resolved(constantPoolHandle cpool) {
   409 oop ConstantPoolCacheEntry::appendix_if_resolved(constantPoolHandle cpool) {
   410   if (is_f1_null() || !has_appendix())
   410   if (!has_appendix())
   411     return NULL;
   411     return NULL;
   412   const int ref_index = f2_as_index() + _indy_resolved_references_appendix_offset;
   412   const int ref_index = f2_as_index() + _indy_resolved_references_appendix_offset;
   413   objArrayOop resolved_references = cpool->resolved_references();
   413   objArrayOop resolved_references = cpool->resolved_references();
   414   return resolved_references->obj_at(ref_index);
   414   return resolved_references->obj_at(ref_index);
   415 }
   415 }
   416 
   416 
   417 
   417 
   418 oop ConstantPoolCacheEntry::method_type_if_resolved(constantPoolHandle cpool) {
   418 oop ConstantPoolCacheEntry::method_type_if_resolved(constantPoolHandle cpool) {
   419   if (is_f1_null() || !has_method_type())
   419   if (!has_method_type())
   420     return NULL;
   420     return NULL;
   421   const int ref_index = f2_as_index() + _indy_resolved_references_method_type_offset;
   421   const int ref_index = f2_as_index() + _indy_resolved_references_method_type_offset;
   422   objArrayOop resolved_references = cpool->resolved_references();
   422   objArrayOop resolved_references = cpool->resolved_references();
   423   return resolved_references->obj_at(ref_index);
   423   return resolved_references->obj_at(ref_index);
   424 }
   424 }