Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
1137:97125851f396 | 1138:dd57230ba8fe |
---|---|
115 static CallGenerator* for_predicted_call(ciKlass* predicted_receiver, | 115 static CallGenerator* for_predicted_call(ciKlass* predicted_receiver, |
116 CallGenerator* if_missed, | 116 CallGenerator* if_missed, |
117 CallGenerator* if_hit, | 117 CallGenerator* if_hit, |
118 float hit_prob); | 118 float hit_prob); |
119 | 119 |
120 // How to make a call that optimistically assumes a MethodHandle target: | |
121 static CallGenerator* for_predicted_dynamic_call(ciMethodHandle* predicted_method_handle, | |
122 CallGenerator* if_missed, | |
123 CallGenerator* if_hit, | |
124 float hit_prob); | |
125 | |
120 // How to make a call that gives up and goes back to the interpreter: | 126 // How to make a call that gives up and goes back to the interpreter: |
121 static CallGenerator* for_uncommon_trap(ciMethod* m, | 127 static CallGenerator* for_uncommon_trap(ciMethod* m, |
122 Deoptimization::DeoptReason reason, | 128 Deoptimization::DeoptReason reason, |
123 Deoptimization::DeoptAction action); | 129 Deoptimization::DeoptAction action); |
124 | 130 |