some code clean-up of CodeGenerator#runCompiled