提交 42685e2d 编写于 作者: N never

6666343: Compile::has_loops not always set correctly

Summary: Compile::has_loops() should be set from inlined methods
Reviewed-by: kvn, rasbold
上级 02deec70
...@@ -390,6 +390,8 @@ void Parse::do_call() { ...@@ -390,6 +390,8 @@ void Parse::do_call() {
} }
if (cg->is_inline()) { if (cg->is_inline()) {
// Accumulate has_loops estimate
C->set_has_loops(C->has_loops() || call_method->has_loops());
C->env()->notice_inlined_method(call_method); C->env()->notice_inlined_method(call_method);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册