[webkit-dev] Fwd: Understending LLInt

Filip Pizlo fpizlo at apple.com
Wed Nov 14 08:11:41 PST 2012


The LLInt doesn't compile anything to native code, since its an interpreter. It interprets the code instead. 

-Filip

On Nov 14, 2012, at 3:19 AM, wingoog moon <wingoog91 at gmail.com> wrote:

> 
> 
> ---------- Forwarded message ----------
> From: wingoog moon <wingoog91 at gmail.com>
> Date: Wed, Nov 14, 2012 at 1:51 AM
> Subject: Understending LLInt
> To: squirrelfish-dev at lists.webkit.org
> 
> 
> Hi All.
> 
> At which point LLInt starts to compile bytecode to the native code?
> If I'm not mistaken it should be in prepareForExecution function, so I guess that this part of code actually does translation from bytecode to native code.
> 
>  if (JITCode::isBaselineCode(jitType)) {
>         // Start off in the low level interpreter.
>         LLInt::getEntrypoint(exec->globalData(), codeBlock.get(), jitCode);
>         codeBlock->setJITCode(jitCode, MacroAssemblerCodePtr());
>         return true;
>     }
> 
> But I just cannot figure out how translation actually is done. My only assumption that this function only set up some native code, and actually compilation begins when calling functions from native assembly code.
> 
> Can anyone please explain LLInt working mechanism, any links or articles?
> 
> 
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20121114/cc5a36d2/attachment.html>


More information about the webkit-dev mailing list