The verbs hate, love, like, prefer are usually followed by a gerund when the meaning is general, and by a to-infinitive when they refer to a particular time or situation. You must always use the to-infinitive with the expressions 'would love to', 'would hate to', etc.