codegen: use gen_frame_target in cvt from int and is_exception