[Development] V4 porting

Erik Verbruggen erik.verbruggen at theqtcompany.com
Thu Jan 7 10:45:15 CET 2016


On 24-12-2015 12:42, Dmitriy - wrote:
> Thank.
> I want to port JIT. Where should I start?
> You have any roadmap for this?
>
> Now I'm using qmljs tool for testing purpose.
We use the assembler classes from WTF (JavaScriptCore) to generate the 
code, so you'll have to start with writing one for your CPU 
architecture. IIRC, the MIPS assembler is the one with the least weird 
stuff. After that, you'll have to grab your ABI documentation and teach 
the TargetPlatform class (in qv4targetplatform_p.h) about the calling 
convention. If you set RegAllocIsSupported=0 you can leave 
getPlatformRegisterInfo empty. If you want to debug the generated code, 
you can write a JSC::tryToDisassemble function that will be called after 
generating the JITted code for a function (if you set the environment 
variable QV4_SHOW_ASM=1). As a minimalistic start, I'd try to get 
something like "function x(){return 0}" working.

Hope this helps.

-- Erik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160107/384a8e6d/attachment.html>


More information about the Development mailing list