You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by zouqiong <us...@gmail.com> on 2007/02/01 10:37:21 UTC

[Drlvm][OPT]how can inline RuntimeHelper?

Hi, all:
   how can I inline RuntimeHelper in OPT?

-- 
Best Regards,
Qiong,Zou

Re: [Drlvm][OPT]how can inline RuntimeHelper?

Posted by Mikhail Fursov <mi...@gmail.com>.
The algorithm is:
1) Write java version of your helper with magics
2) Teach JIT to replace particular instruction with your Java method call
3) Ask JIT to inline the method.

Check jitrino/src/optimizer/helper_inliner.cpp code and try to trace how any
of exising helpers is inlined, for example write barrier or allocation
helper.



On 2/1/07, zouqiong <us...@gmail.com> wrote:
>
> Hi, all:
>    how can I inline RuntimeHelper in OPT?
>
> --
> Best Regards,
> Qiong,Zou
>



-- 
Mikhail Fursov