--- a/src/hotspot/share/ci/ciStreams.cpp Thu Jan 31 17:48:25 2019 -0800
+++ b/src/hotspot/share/ci/ciStreams.cpp Thu Jan 31 17:48:29 2019 -0800
@@ -315,18 +315,7 @@
// 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();