unify calling stack_extend and extend_callinfo. It makes output code small