mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6939134: JSR 292 adjustments to method handle invocation
Split MethodHandle.invoke into invokeExact and invokeGeneric; also clean up JVM-to-Java interfaces Reviewed-by: twisti
This commit is contained in:
parent
0211f9703a
commit
4eb75c2df3
29 changed files with 413 additions and 233 deletions
|
@ -525,11 +525,16 @@ class methodOopDesc : public oopDesc {
|
|||
|
||||
// JSR 292 support
|
||||
bool is_method_handle_invoke() const { return access_flags().is_method_handle_invoke(); }
|
||||
static bool is_method_handle_invoke_name(vmSymbols::SID name_sid);
|
||||
static bool is_method_handle_invoke_name(symbolOop name) {
|
||||
return is_method_handle_invoke_name(vmSymbols::find_sid(name));
|
||||
}
|
||||
// Tests if this method is an internal adapter frame from the
|
||||
// MethodHandleCompiler.
|
||||
bool is_method_handle_adapter() const;
|
||||
static methodHandle make_invoke_method(KlassHandle holder,
|
||||
symbolHandle signature,
|
||||
symbolHandle name, //invokeExact or invokeGeneric
|
||||
symbolHandle signature, //anything at all
|
||||
Handle method_type,
|
||||
TRAPS);
|
||||
// these operate only on invoke methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue