Hello,
I have started to implementing an AngelScript JIT using LLVM, mostly for fun and learning: https://github.com/AsuMagic/angelscript-llvm
Right now it is very very primitive, but I have managed to successfully JIT an integer add function from its bytecode alone, and successfully return to the VM.
I have currently implemented it in such a way that every AS function that gets JIT'd generates two functions:
- An internal function with a signature that is roughly the same as that of the AS function.
- A “jit entry” function that is an asJITFunction, which calls the internal function by …