Rewrite bytecode/lnotab generation logic.