Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert javascript to LLVM IR?

Is there any LLVM backend for javascript? If not, other tools that convert dynamic language(similar to javascript) to LLVM IR will also be okay. Because I am writing a dynamic language compiler and such tools can help me find out how some features are implemented.

like image 327
AllenLin Avatar asked Dec 16 '15 13:12

AllenLin


1 Answers

FTL JIT (JavaScriptCore) uses LLVM as a backend.

Other VMs for dynamic languages using LLVM MCJIT:

  • Pyston
  • HHVM
  • LLILC
  • Julia
  • The list goes on
like image 109
Vladislav Ivanishin Avatar answered Nov 09 '22 13:11

Vladislav Ivanishin