It is very sad he left Reddit, HN and almost every other online communities along with LuaJIT.
Edit: Sorry I was wrong. Looks like he is still working on LuaJIT!
TL;DR: LuaJIT's trick is that it avoids the linkage table.
"Inlinig" compiled assembly from a shared object is basically impossible because you can't just move machine code around arbitrary since it may access arbitrary additional code or data at relative offsets. If you move it, you'll break it.