Mercurial > hg > truffle
comparison src/share/vm/runtime/sharedRuntime.cpp @ 1507:cd5dbf694d45
6939134: JSR 292 adjustments to method handle invocation
Summary: split MethodHandle.invoke into invokeExact and invokeGeneric; also clean up JVM-to-Java interfaces
Reviewed-by: twisti
author | jrose |
---|---|
date | Sat, 01 May 2010 02:42:18 -0700 |
parents | 2338d41fbd81 |
children | c18cbe5936b8 1a5913bf5e19 |
comparison
equal
deleted
inserted
replaced
1506:2338d41fbd81 | 1507:cd5dbf694d45 |
---|---|
1555 } | 1555 } |
1556 klassOop kignore; int fignore; | 1556 klassOop kignore; int fignore; |
1557 methodOop actual_method = MethodHandles::decode_method(actual, | 1557 methodOop actual_method = MethodHandles::decode_method(actual, |
1558 kignore, fignore); | 1558 kignore, fignore); |
1559 if (actual_method != NULL) { | 1559 if (actual_method != NULL) { |
1560 if (actual_method->name() == vmSymbols::invoke_name()) | 1560 if (methodOopDesc::is_method_handle_invoke_name(actual_method->name())) |
1561 mhName = "$"; | 1561 mhName = "$"; |
1562 else | 1562 else |
1563 mhName = actual_method->signature()->as_C_string(); | 1563 mhName = actual_method->signature()->as_C_string(); |
1564 if (mhName[0] == '$') | 1564 if (mhName[0] == '$') |
1565 mhName = actual_method->signature()->as_C_string(); | 1565 mhName = actual_method->signature()->as_C_string(); |