generating code to reconstruct interpreter frames