mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +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
|
@ -117,6 +117,12 @@ class CallGenerator : public ResourceObj {
|
|||
CallGenerator* if_hit,
|
||||
float hit_prob);
|
||||
|
||||
// How to make a call that optimistically assumes a MethodHandle target:
|
||||
static CallGenerator* for_predicted_dynamic_call(ciMethodHandle* predicted_method_handle,
|
||||
CallGenerator* if_missed,
|
||||
CallGenerator* if_hit,
|
||||
float hit_prob);
|
||||
|
||||
// How to make a call that gives up and goes back to the interpreter:
|
||||
static CallGenerator* for_uncommon_trap(ciMethod* m,
|
||||
Deoptimization::DeoptReason reason,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue