hotspot/src/share/vm/ci/ciStreams.cpp
changeset 4566 b363f6ef4068
parent 4564 55dfb20908d0
child 4567 7fc02fbe5c7a
equal deleted inserted replaced
4565:cbb3fed38514 4566:b363f6ef4068
   319 // ------------------------------------------------------------------
   319 // ------------------------------------------------------------------
   320 // ciBytecodeStream::get_method
   320 // ciBytecodeStream::get_method
   321 //
   321 //
   322 // If this is a method invocation bytecode, get the invoked method.
   322 // If this is a method invocation bytecode, get the invoked method.
   323 ciMethod* ciBytecodeStream::get_method(bool& will_link) {
   323 ciMethod* ciBytecodeStream::get_method(bool& will_link) {
   324   ciMethod* m = CURRENT_ENV->get_method_by_index(_holder, get_method_index(),cur_bc());
   324   ciMethod* m = CURRENT_ENV->get_method_by_index(_holder, get_method_index(), cur_bc());
   325   will_link = m->is_loaded();
   325   will_link = m->is_loaded();
   326   return m;
   326   return m;
   327 }
   327 }
   328 
   328 
   329 // ------------------------------------------------------------------
   329 // ------------------------------------------------------------------
   368   constantPoolOop cpool = _holder->get_instanceKlass()->constants();
   368   constantPoolOop cpool = _holder->get_instanceKlass()->constants();
   369   int method_index = get_method_index();
   369   int method_index = get_method_index();
   370   int name_and_type_index = cpool->name_and_type_ref_index_at(method_index);
   370   int name_and_type_index = cpool->name_and_type_ref_index_at(method_index);
   371   return cpool->signature_ref_index_at(name_and_type_index);
   371   return cpool->signature_ref_index_at(name_and_type_index);
   372 }
   372 }
       
   373 
       
   374 // ------------------------------------------------------------------
       
   375 // ciBytecodeStream::get_cpcache
       
   376 ciCPCache* ciBytecodeStream::get_cpcache() {
       
   377   VM_ENTRY_MARK;
       
   378   // Get the constant pool.
       
   379   constantPoolOop      cpool   = _holder->get_instanceKlass()->constants();
       
   380   constantPoolCacheOop cpcache = cpool->cache();
       
   381 
       
   382   return CURRENT_ENV->get_object(cpcache)->as_cpcache();
       
   383 }