I am not aware of any work of JITs on JITs. But I agree there is a lot of potential there.
One thing I would like to see done is to take PyPy or LuaJIT, and get their tracing JITs to generate JS, either directly or more likely indirectly by emitting LLVM which Emscripten then compiles to JS. In theory that could let PyPy and LuaJIT run on the web with speed similar to what they have natively.
If anyone familiar with PyPy or LuaJIT wants to work on this with me (I wrote Emscripten), let me know! :)
One thing I would like to see done is to take PyPy or LuaJIT, and get their tracing JITs to generate JS, either directly or more likely indirectly by emitting LLVM which Emscripten then compiles to JS. In theory that could let PyPy and LuaJIT run on the web with speed similar to what they have natively.
If anyone familiar with PyPy or LuaJIT wants to work on this with me (I wrote Emscripten), let me know! :)