src/share/vm/interpreter/bytecode.hpp

changeset 3251
e342a5110bed
parent 2508
b92c45f2bc75
child 3969
1d7922586cf6
equal deleted inserted replaced
3250:71699e9d8673 3251:e342a5110bed
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) {

mercurial