src/hotspot/share/ci/ciStreams.cpp
changeset 53595 8462b295c08b
parent 53546 63eb7e38ce84
child 53746 bdccafc038a2
equal deleted inserted replaced
53594:47a8fdf84424 53595:8462b295c08b
   313 // ciBytecodeStream::get_method_index
   313 // ciBytecodeStream::get_method_index
   314 //
   314 //
   315 // If this is a method invocation bytecode, get the constant pool
   315 // If this is a method invocation bytecode, get the constant pool
   316 // index of the invoked method.
   316 // index of the invoked method.
   317 int ciBytecodeStream::get_method_index() {
   317 int ciBytecodeStream::get_method_index() {
   318 #ifdef ASSERT
   318   assert(Bytecodes::is_invoke(cur_bc()), "invalid bytecode: %s", Bytecodes::name(cur_bc()));
   319   switch (cur_bc()) {
       
   320   case Bytecodes::_invokeinterface:
       
   321   case Bytecodes::_invokevirtual:
       
   322   case Bytecodes::_invokespecial:
       
   323   case Bytecodes::_invokestatic:
       
   324   case Bytecodes::_invokedynamic:
       
   325     break;
       
   326   default:
       
   327     ShouldNotReachHere();
       
   328   }
       
   329 #endif
       
   330   if (has_index_u4())
   319   if (has_index_u4())
   331     return get_index_u4();  // invokedynamic
   320     return get_index_u4();  // invokedynamic
   332   return get_index_u2_cpcache();
   321   return get_index_u2_cpcache();
   333 }
   322 }
   334 
   323