Bug 1053999 - Rationalize stack recursion checks, r=bholley, a=lmandel

--HG--
extra : amend_source : 3e7920e474f9542d8726968a78453e869cb67621
extra : transplant_source : %C8%EB%EE%A2%8F%19%98%ABQ%22%16%AA%7F%85%3DP%FE%9C%B1%04