Consider stochastic functional differential equations depending on whole past histories in a finite time interval, which determine non-Markovian processes. Under the uniformly elliptic condition on the coefficients of the diffusion terms, the solution admits a smooth density with respect to the Lebesgue measure. In the present paper, we will study the large deviations for the family of the solution process and the asymptotic behaviors of the density. The Malliavin calculus plays a crucial role in our argument.