AFAIK, before entering S3 mode, everything (including processor's current state) is saved in memory, and thus memory is the only component that's still getting fully powered, because it holds all the data needed to return from S3 state to normal state.