> where an interpreter is used for the outer loop and a compiler for the inner loop
That's just a standard JIT isn't it?
Also - note there are multiple ways to automatically make a compiler from an interpreter, so really you just need the interpreter.