Here is a good description:

Hiberfil.sys, Pagefile.sys & the New Swapfile.sys file in Windows 8