mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
6893268: additional dynamic language related optimizations in C2
C2 needs some additional optimizations to be able to handle MethodHandle invokes and invokedynamic instructions at the best performance. Reviewed-by: kvn, never
This commit is contained in:
parent
375527d84e
commit
47f2433a58
52 changed files with 1781 additions and 342 deletions
|
@ -38,6 +38,8 @@ class ciMethod : public ciObject {
|
|||
CI_PACKAGE_ACCESS
|
||||
friend class ciEnv;
|
||||
friend class ciExceptionHandlerStream;
|
||||
friend class ciBytecodeStream;
|
||||
friend class ciMethodHandle;
|
||||
|
||||
private:
|
||||
// General method information.
|
||||
|
@ -251,4 +253,10 @@ class ciMethod : public ciObject {
|
|||
// Print the name of this method in various incarnations.
|
||||
void print_name(outputStream* st = tty);
|
||||
void print_short_name(outputStream* st = tty);
|
||||
|
||||
methodOop get_method_handle_target() {
|
||||
klassOop receiver_limit_oop = NULL;
|
||||
int flags = 0;
|
||||
return MethodHandles::decode_method(get_oop(), receiver_limit_oop, flags);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue