Mercurial > hg > truffle
diff src/share/vm/opto/callGenerator.hpp @ 1138:dd57230ba8fe
6893268: additional dynamic language related optimizations in C2
Summary: C2 needs some additional optimizations to be able to handle MethodHandle invokes and invokedynamic instructions at the best performance.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Tue, 05 Jan 2010 15:21:25 +0100 |
parents | 97125851f396 |
children | c18cbe5936b8 |
line wrap: on
line diff
--- a/src/share/vm/opto/callGenerator.hpp Tue Jan 05 13:05:58 2010 +0100 +++ b/src/share/vm/opto/callGenerator.hpp Tue Jan 05 15:21:25 2010 +0100 @@ -117,6 +117,12 @@ 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,