108 // to handle the given call, and another CallGenerator should be consulted.
109 virtual JVMState* generate(JVMState* jvms) = 0;
110
111 // How to generate a call site that is inlined:
112 static CallGenerator* for_inline(ciMethod* m, float expected_uses = -1);
113 // How to generate code for an on-stack replacement handler.
114 static CallGenerator* for_osr(ciMethod* m, int osr_bci);
115
116 // How to generate vanilla out-of-line call sites:
117 static CallGenerator* for_direct_call(ciMethod* m, bool separate_io_projs = false); // static, special
118 static CallGenerator* for_virtual_call(ciMethod* m, int vtable_index); // virtual, interface
119 static CallGenerator* for_dynamic_call(ciMethod* m); // invokedynamic
120
121 static CallGenerator* for_method_handle_call( JVMState* jvms, ciMethod* caller, ciMethod* callee, bool delayed_forbidden);
122 static CallGenerator* for_method_handle_inline(JVMState* jvms, ciMethod* caller, ciMethod* callee, bool& input_not_const);
123
124 // How to generate a replace a direct call with an inline version
125 static CallGenerator* for_late_inline(ciMethod* m, CallGenerator* inline_cg);
126 static CallGenerator* for_mh_late_inline(ciMethod* caller, ciMethod* callee, bool input_not_const);
127 static CallGenerator* for_string_late_inline(ciMethod* m, CallGenerator* inline_cg);
128
129 // How to make a call but defer the decision whether to inline or not.
130 static CallGenerator* for_warm_call(WarmCallInfo* ci,
131 CallGenerator* if_cold,
132 CallGenerator* if_hot);
133
134 // How to make a call that optimistically assumes a receiver type:
135 static CallGenerator* for_predicted_call(ciKlass* predicted_receiver,
136 CallGenerator* if_missed,
137 CallGenerator* if_hit,
138 float hit_prob);
139
140 // How to make a call that optimistically assumes a MethodHandle target:
141 static CallGenerator* for_predicted_dynamic_call(ciMethodHandle* predicted_method_handle,
142 CallGenerator* if_missed,
143 CallGenerator* if_hit,
144 float hit_prob);
145
146 // How to make a call that gives up and goes back to the interpreter:
147 static CallGenerator* for_uncommon_trap(ciMethod* m,
|
108 // to handle the given call, and another CallGenerator should be consulted.
109 virtual JVMState* generate(JVMState* jvms) = 0;
110
111 // How to generate a call site that is inlined:
112 static CallGenerator* for_inline(ciMethod* m, float expected_uses = -1);
113 // How to generate code for an on-stack replacement handler.
114 static CallGenerator* for_osr(ciMethod* m, int osr_bci);
115
116 // How to generate vanilla out-of-line call sites:
117 static CallGenerator* for_direct_call(ciMethod* m, bool separate_io_projs = false); // static, special
118 static CallGenerator* for_virtual_call(ciMethod* m, int vtable_index); // virtual, interface
119 static CallGenerator* for_dynamic_call(ciMethod* m); // invokedynamic
120
121 static CallGenerator* for_method_handle_call( JVMState* jvms, ciMethod* caller, ciMethod* callee, bool delayed_forbidden);
122 static CallGenerator* for_method_handle_inline(JVMState* jvms, ciMethod* caller, ciMethod* callee, bool& input_not_const);
123
124 // How to generate a replace a direct call with an inline version
125 static CallGenerator* for_late_inline(ciMethod* m, CallGenerator* inline_cg);
126 static CallGenerator* for_mh_late_inline(ciMethod* caller, ciMethod* callee, bool input_not_const);
127 static CallGenerator* for_string_late_inline(ciMethod* m, CallGenerator* inline_cg);
128 static CallGenerator* for_boxing_late_inline(ciMethod* m, CallGenerator* inline_cg);
129
130 // How to make a call but defer the decision whether to inline or not.
131 static CallGenerator* for_warm_call(WarmCallInfo* ci,
132 CallGenerator* if_cold,
133 CallGenerator* if_hot);
134
135 // How to make a call that optimistically assumes a receiver type:
136 static CallGenerator* for_predicted_call(ciKlass* predicted_receiver,
137 CallGenerator* if_missed,
138 CallGenerator* if_hit,
139 float hit_prob);
140
141 // How to make a call that optimistically assumes a MethodHandle target:
142 static CallGenerator* for_predicted_dynamic_call(ciMethodHandle* predicted_method_handle,
143 CallGenerator* if_missed,
144 CallGenerator* if_hit,
145 float hit_prob);
146
147 // How to make a call that gives up and goes back to the interpreter:
148 static CallGenerator* for_uncommon_trap(ciMethod* m,
|