Sony raised sales guidance for the full year and posted operating profit that smashed analyst expectations after a strong quarter for its gaming business.