optimizing runtime code for interpreter