summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2013-11-13 14:45:45 +0000
committerSimon Marlow <marlowsd@gmail.com>2013-11-14 12:07:33 +0000
commit35c05d71cb84c25983ab19b1010ac93ab040b266 (patch)
tree5be05ce69189a609d3bf3e6f9d26a836c1df28de /compiler/codeGen
parent334545e010051f31266f6637fa999d1df438b065 (diff)
downloadhaskell-35c05d71cb84c25983ab19b1010ac93ab040b266.tar.gz
comments
Diffstat (limited to 'compiler/codeGen')
-rw-r--r--compiler/codeGen/StgCmmLayout.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/codeGen/StgCmmLayout.hs b/compiler/codeGen/StgCmmLayout.hs
index 84ff21b3d0..08f4e296b8 100644
--- a/compiler/codeGen/StgCmmLayout.hs
+++ b/compiler/codeGen/StgCmmLayout.hs
@@ -120,15 +120,15 @@ emitCallWithExtraStack (callConv, retConv) fun args extra_stack
adjustHpBackwards :: FCode ()
--- This function adjusts and heap pointers just before a tail call or
+-- This function adjusts the heap pointer just before a tail call or
-- return. At a call or return, the virtual heap pointer may be less
-- than the real Hp, because the latter was advanced to deal with
-- the worst-case branch of the code, and we may be in a better-case
-- branch. In that case, move the real Hp *back* and retract some
-- ticky allocation count.
--
--- It *does not* deal with high-water-mark adjustment.
--- That's done by functions which allocate heap.
+-- It *does not* deal with high-water-mark adjustment. That's done by
+-- functions which allocate heap.
adjustHpBackwards
= do { hp_usg <- getHpUsage
; let rHp = realHp hp_usg
@@ -138,9 +138,9 @@ adjustHpBackwards
; emit (if adjust_words == 0
then mkNop
- else mkAssign hpReg new_hp) -- Generates nothing when vHp==rHp
+ else mkAssign hpReg new_hp) -- Generates nothing when vHp==rHp
- ; tickyAllocHeap False adjust_words -- ...ditto
+ ; tickyAllocHeap False adjust_words -- ...ditto
; setRealHp vHp
}