181 } else { |
181 } else { |
182 // Make a disembodied, stateless ILT. |
182 // Make a disembodied, stateless ILT. |
183 // TO DO: When UseOldInlining is removed, copy the ILT code elsewhere. |
183 // TO DO: When UseOldInlining is removed, copy the ILT code elsewhere. |
184 float site_invoke_ratio = prof_factor; |
184 float site_invoke_ratio = prof_factor; |
185 // Note: ilt is for the root of this parse, not the present call site. |
185 // Note: ilt is for the root of this parse, not the present call site. |
186 ilt = new InlineTree(this, jvms->method(), jvms->caller(), site_invoke_ratio, 0); |
186 ilt = new InlineTree(this, jvms->method(), jvms->caller(), site_invoke_ratio, MaxInlineLevel); |
187 } |
187 } |
188 WarmCallInfo scratch_ci; |
188 WarmCallInfo scratch_ci; |
189 if (!UseOldInlining) |
189 if (!UseOldInlining) |
190 scratch_ci.init(jvms, call_method, profile, prof_factor); |
190 scratch_ci.init(jvms, call_method, profile, prof_factor); |
191 WarmCallInfo* ci = ilt->ok_to_inline(call_method, jvms, profile, &scratch_ci); |
191 WarmCallInfo* ci = ilt->ok_to_inline(call_method, jvms, profile, &scratch_ci); |