comparison src/share/vm/opto/bytecodeInfo.cpp @ 726:be93aad57795

6655646: dynamic languages need dynamically linked call sites Summary: invokedynamic instruction (JSR 292 RI) Reviewed-by: twisti, never
author jrose
date Tue, 21 Apr 2009 23:21:04 -0700
parents f6da6f0174ac
children bd02caa94611 9987d9d5eb0e
comparison
equal deleted inserted replaced
725:928912ce8438 726:be93aad57795
319 if( !UseInterpreter || CompileTheWorld /* running Xcomp or CTW */ ) { 319 if( !UseInterpreter || CompileTheWorld /* running Xcomp or CTW */ ) {
320 // Checks that constant pool's call site has been visited 320 // Checks that constant pool's call site has been visited
321 // stricter than callee_holder->is_initialized() 321 // stricter than callee_holder->is_initialized()
322 ciBytecodeStream iter(caller_method); 322 ciBytecodeStream iter(caller_method);
323 iter.force_bci(caller_bci); 323 iter.force_bci(caller_bci);
324 int index = iter.get_index_big(); 324 int index = iter.get_index_int();
325 if( !caller_method->is_klass_loaded(index, true) ) { 325 if( !caller_method->is_klass_loaded(index, true) ) {
326 return false; 326 return false;
327 } 327 }
328 // Try to do constant pool resolution if running Xcomp 328 // Try to do constant pool resolution if running Xcomp
329 Bytecodes::Code call_bc = iter.cur_bc(); 329 Bytecodes::Code call_bc = iter.cur_bc();