[jit] Reduce code duplication in the inlining code.