1.1 --- a/src/share/vm/ci/ciStreams.cpp Mon Jan 04 15:21:09 2010 -0800 1.2 +++ b/src/share/vm/ci/ciStreams.cpp Tue Jan 05 13:05:58 2010 +0100 1.3 @@ -321,7 +321,7 @@ 1.4 // 1.5 // If this is a method invocation bytecode, get the invoked method. 1.6 ciMethod* ciBytecodeStream::get_method(bool& will_link) { 1.7 - ciMethod* m = CURRENT_ENV->get_method_by_index(_holder, get_method_index(),cur_bc()); 1.8 + ciMethod* m = CURRENT_ENV->get_method_by_index(_holder, get_method_index(), cur_bc()); 1.9 will_link = m->is_loaded(); 1.10 return m; 1.11 } 1.12 @@ -370,3 +370,14 @@ 1.13 int name_and_type_index = cpool->name_and_type_ref_index_at(method_index); 1.14 return cpool->signature_ref_index_at(name_and_type_index); 1.15 } 1.16 + 1.17 +// ------------------------------------------------------------------ 1.18 +// ciBytecodeStream::get_cpcache 1.19 +ciCPCache* ciBytecodeStream::get_cpcache() { 1.20 + VM_ENTRY_MARK; 1.21 + // Get the constant pool. 1.22 + constantPoolOop cpool = _holder->get_instanceKlass()->constants(); 1.23 + constantPoolCacheOop cpcache = cpool->cache(); 1.24 + 1.25 + return CURRENT_ENV->get_object(cpcache)->as_cpcache(); 1.26 +}