framework for the 'ghetto JIT compile' feature