projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
535e1a3
)
DEBUG removal
author
Ian Lynagh
<igloo@earth.li>
Sat, 29 Mar 2008 17:11:35 +0000
(17:11 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 29 Mar 2008 17:11:35 +0000
(17:11 +0000)
compiler/codeGen/CgStackery.lhs
patch
|
blob
|
history
diff --git
a/compiler/codeGen/CgStackery.lhs
b/compiler/codeGen/CgStackery.lhs
index
7b1d986
..
4196997
100644
(file)
--- a/
compiler/codeGen/CgStackery.lhs
+++ b/
compiler/codeGen/CgStackery.lhs
@@
-41,6
+41,8
@@
import Util
import FastString
import OrdList
import Outputable
import FastString
import OrdList
import Outputable
+
+import Control.Monad
\end{code}
%************************************************************************
\end{code}
%************************************************************************
@@
-275,12
+277,10
@@
pushUpdateFrame :: CmmExpr -> Code -> Code
pushUpdateFrame updatee code
= do {
pushUpdateFrame updatee code
= do {
-#ifdef DEBUG
- EndOfBlockInfo _ sequel <- getEndOfBlockInfo ;
- ASSERT(case sequel of { OnStack -> True; _ -> False})
-#endif
-
- allocStackTop (fixedHdrSize +
+ when debugIsOn $ do
+ { EndOfBlockInfo _ sequel <- getEndOfBlockInfo ;
+ ; MASSERT(case sequel of { OnStack -> True; _ -> False}) }
+ ; allocStackTop (fixedHdrSize +
sIZEOF_StgUpdateFrame_NoHdr `quot` wORD_SIZE)
; vsp <- getVirtSp
; setStackFrame vsp
sIZEOF_StgUpdateFrame_NoHdr `quot` wORD_SIZE)
; vsp <- getVirtSp
; setStackFrame vsp