src/share/vm/ci/ciStreams.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/ci/ciStreams.cpp
src/share/vm/ci/ciStreams.cpp
Print this page
*** 333,354 ****
// ciBytecodeStream::get_method_index
//
// If this is a method invocation bytecode, get the constant pool
// index of the invoked method.
int ciBytecodeStream::get_method_index() {
! #ifdef ASSERT
! switch (cur_bc()) {
! case Bytecodes::_invokeinterface:
! case Bytecodes::_invokevirtual:
! case Bytecodes::_invokespecial:
! case Bytecodes::_invokestatic:
! case Bytecodes::_invokedynamic:
! break;
! default:
! ShouldNotReachHere();
! }
! #endif
if (has_index_u4())
return get_index_u4(); // invokedynamic
return get_index_u2_cpcache();
}
--- 333,343 ----
// ciBytecodeStream::get_method_index
//
// If this is a method invocation bytecode, get the constant pool
// index of the invoked method.
int ciBytecodeStream::get_method_index() {
! assert(Bytecodes::is_invoke(cur_bc()), "invalid bytecode: %s", Bytecodes::name(cur_bc()));
if (has_index_u4())
return get_index_u4(); // invokedynamic
return get_index_u2_cpcache();
}
src/share/vm/ci/ciStreams.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File