hotspot/src/share/vm/interpreter/bytecode.hpp
changeset 10979 c25dd872c62f
parent 8107 78e5bd944384
child 13391 30245956af37
equal deleted inserted replaced
10978:c68bfbbbd60b 10979:c25dd872c62f
   232                                                           is_invokevirtual()   ||
   232                                                           is_invokevirtual()   ||
   233                                                           is_invokestatic()    ||
   233                                                           is_invokestatic()    ||
   234                                                           is_invokespecial()   ||
   234                                                           is_invokespecial()   ||
   235                                                           is_invokedynamic(); }
   235                                                           is_invokedynamic(); }
   236 
   236 
       
   237   bool is_method_handle_invoke() const {
       
   238     return (is_invokedynamic() ||
       
   239             (is_invokevirtual() &&
       
   240              method()->constants()->klass_ref_at_noresolve(index()) == vmSymbols::java_lang_invoke_MethodHandle() &&
       
   241              methodOopDesc::is_method_handle_invoke_name(name())));
       
   242   }
       
   243 
   237   // Helper to skip verification.   Used is_valid() to check if the result is really an invoke
   244   // Helper to skip verification.   Used is_valid() to check if the result is really an invoke
   238   inline friend Bytecode_invoke Bytecode_invoke_check(methodHandle method, int bci);
   245   inline friend Bytecode_invoke Bytecode_invoke_check(methodHandle method, int bci);
   239 };
   246 };
   240 
   247 
   241 inline Bytecode_invoke Bytecode_invoke_check(methodHandle method, int bci) {
   248 inline Bytecode_invoke Bytecode_invoke_check(methodHandle method, int bci) {