The Giants played small-ball and held the Marlins' offense at bay to secure their fourth straight win.