Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
9bef49b8
Commit
9bef49b8
authored
25 years ago
by
Julian Seward
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-01-25 16:57:40 by sewardj]
genCodeInfoTable: put tag value into srt_len field for constr info tables.
parent
26b1c3ba
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/compiler/nativeGen/StixInfo.lhs
+8
-1
8 additions, 1 deletion
ghc/compiler/nativeGen/StixInfo.lhs
with
8 additions
and
1 deletion
ghc/compiler/nativeGen/StixInfo.lhs
+
8
−
1
View file @
9bef49b8
...
...
@@ -14,7 +14,7 @@ import StgSyn ( SRT(..) )
import ClosureInfo ( closurePtrsSize,
closureNonHdrSize, closureSMRep,
infoTableLabelFromCI,
infoTblNeedsSRT, getSRTInfo
infoTblNeedsSRT, getSRTInfo
, closureSemiTag
)
import PrimRep ( PrimRep(..) )
import SMRep ( SMRep(..), getSMRepClosureTypeInt )
...
...
@@ -22,6 +22,7 @@ import Stix -- all of it
import UniqSupply ( returnUs, UniqSM )
import Outputable ( int )
import BitSet ( intBS )
import Maybes ( maybeToBool )
import Bits
import Word
...
...
@@ -68,6 +69,8 @@ genCodeInfoTable (CClosureInfoAndCode cl_info _ _ cl_descr)
srt = getSRTInfo cl_info
(srt_label,srt_len)
| is_constr
= (StInt 0, tag)
| needs_srt
= case srt of
(lbl, SRT off len) ->
...
...
@@ -76,6 +79,10 @@ genCodeInfoTable (CClosureInfoAndCode cl_info _ _ cl_descr)
| otherwise
= (StInt 0, 0)
maybe_tag = closureSemiTag cl_info
is_constr = maybeToBool maybe_tag
(Just tag) = maybe_tag
layout_info :: Word32
#ifdef WORDS_BIGENDIAN
layout_info = (fromInt ptrs `shiftL` 16) .|. fromInt nptrs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment