The S&P 500 is on the cusp of all-time highs with just two trading sessions left in the year.