https://developer.mozilla.org/en-US/docs/Nanojit
http://www.udpwork.com/item/7323.html
After search the content from the internet, I think the nano-jit is the jit backend of flashplayer.
If we want to switch the compiler from the gcc to msvs, you can reference this commit:https://bugzilla.mozilla.org/attachment.cgi?id=531649&action=diff, it main focus in ABI and cacheflush
we can know how to porting the jit to a new platform:
1. close all the platform indepent optimization for the jit.
2. reference the ABI
3. check the cacheflush.
4. implement platform dependent api for the macroAsssembler or native class.
5. dump and check the native code for guarantee your implemnt is right.
6. construct some test case for your code, make sure most of branch can be reach.
7. open the optimization step by step, then verify it.
8. do the arch optimization.