Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
a9eda064
Commit
a9eda064
authored
Jul 15, 2007
by
Michael D. Adams
Browse files
Fixed CPS to account for info tables not being next to code
parent
0c1341d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/cmm/CmmCPSGen.hs
View file @
a9eda064
...
...
@@ -17,6 +17,7 @@ import CmmCallConv
import
CgProf
(
curCCS
,
curCCSAddr
)
import
CgUtils
(
cmmOffsetW
)
import
CgInfoTbls
(
entryCode
)
import
SMRep
import
ForeignCall
...
...
@@ -178,7 +179,7 @@ continuationToProc (max_stack, update_frame_size, formats) stack_use uniques
FinalSwitch
expr
targets
->
[
CmmSwitch
expr
targets
]
FinalReturn
arguments
->
tail_call
curr_stack
(
CmmLoad
(
CmmReg
spReg
)
wordRep
)
(
entryCode
(
CmmLoad
(
CmmReg
spReg
)
wordRep
)
)
arguments
FinalJump
target
arguments
->
tail_call
curr_stack
target
arguments
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment