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.
-
For which programming language is the compiler being written?Anderson Green– Anderson Green2015-12-17 05:15:51 +00:00Commented Dec 17, 2015 at 5:15
-
related: stackoverflow.com/questions/8466824/…box– box2015-12-17 09:24:57 +00:00Commented Dec 17, 2015 at 9:24
-
@AndersonGreen It is just a toy language created by myself, similar to javascript.AllenLin– AllenLin2015-12-17 13:34:25 +00:00Commented Dec 17, 2015 at 13:34
-
there are few projects on github about it. One of them is TypeScript Native Compiler (github.com/ASDAlexander77/TypeScriptCompiler)Alexander77– Alexander772021-09-29 18:25:39 +00:00Commented Sep 29, 2021 at 18:25
Add a comment
|
1 Answer
FTL JIT (JavaScriptCore) uses LLVM as a backend.
Other VMs for dynamic languages using LLVM MCJIT:
1 Comment
dubek
As of Feb 2016, FTL JIT (Webkit) no longer uses LLVM; they use B3 (Bare Bones Backend) JIT: webkit.org/blog/5852/introducing-the-b3-jit-compiler