Added stack checks to the CPS algorithm
authorMichael D. Adams <t-madams@microsoft.com>
Wed, 27 Jun 2007 15:15:03 +0000 (15:15 +0000)
committerMichael D. Adams <t-madams@microsoft.com>
Wed, 27 Jun 2007 15:15:03 +0000 (15:15 +0000)
commit1f46671fe24c7155ee64091b71b77dd66909e7a0
treeda9d2099466475b4f291b0e488bcbe2fa4e072d9
parentf96e9aa0444de0e673b3c4055c6e43299639bc5b
Added stack checks to the CPS algorithm

This eliminates one of the panics introduced by
the previous patch:
'First pass at implementing info tables for CPS'

The other panic introduced by that patch still remains.
It was due to the need to convert from a
  ContinuationInfo to a CmmInfo.
  (codeGen/CgInfoTbls.hs:emitClosureCodeAndInfoTable)
  (codeGen/CgInfoTbls.hs:emitReturnTarget)
compiler/cmm/Cmm.hs
compiler/cmm/CmmCPS.hs
compiler/cmm/CmmInfo.hs
compiler/cmm/CmmParse.y
compiler/cmm/CmmProcPoint.hs
compiler/cmm/PprCmm.hs
compiler/codeGen/CgMonad.lhs