src/share/vm/ci/ciStreams.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/ci/ciStreams.cpp Tue Feb 14 20:36:21 2017
--- new/src/share/vm/ci/ciStreams.cpp Tue Feb 14 20:36:21 2017
*** 333,354 ****
--- 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() {
#ifdef ASSERT
switch (cur_bc()) {
case Bytecodes::_invokeinterface:
case Bytecodes::_invokevirtual:
case Bytecodes::_invokespecial:
case Bytecodes::_invokestatic:
case Bytecodes::_invokedynamic:
break;
default:
ShouldNotReachHere();
}
#endif
+ 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