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
Glasgow Haskell Compiler
GHC
Commits
53fad2ab
Commit
53fad2ab
authored
Jan 04, 2012
by
Simon Marlow
Browse files
Rename struct _CostCentreStack to struct CostCentreStack_ for consistency
Needed by
#5357
parent
e04da8a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/rts/prof/CCS.h
View file @
53fad2ab
...
@@ -29,7 +29,7 @@ int rts_isProfiled(void);
...
@@ -29,7 +29,7 @@ int rts_isProfiled(void);
* generator (compiler/codeGen/CgProf.hs).
* generator (compiler/codeGen/CgProf.hs).
*/
*/
typedef
struct
_
CostCentre
{
typedef
struct
CostCentre
_
{
StgInt
ccID
;
// Unique Id, allocated by the RTS
StgInt
ccID
;
// Unique Id, allocated by the RTS
char
*
label
;
char
*
label
;
...
@@ -42,17 +42,17 @@ typedef struct _CostCentre {
...
@@ -42,17 +42,17 @@ typedef struct _CostCentre {
StgInt
is_caf
;
// non-zero for a CAF cost centre
StgInt
is_caf
;
// non-zero for a CAF cost centre
struct
_
CostCentre
*
link
;
struct
CostCentre
_
*
link
;
}
CostCentre
;
}
CostCentre
;
typedef
struct
_
CostCentreStack
{
typedef
struct
CostCentreStack
_
{
StgInt
ccsID
;
// unique ID, allocated by the RTS
StgInt
ccsID
;
// unique ID, allocated by the RTS
CostCentre
*
cc
;
// Cost centre at the top of the stack
CostCentre
*
cc
;
// Cost centre at the top of the stack
struct
_
CostCentreStack
*
prevStack
;
// parent
struct
CostCentreStack
_
*
prevStack
;
// parent
struct
_
IndexTable
*
indexTable
;
// children
struct
IndexTable
_
*
indexTable
;
// children
struct
_
CostCentreStack
*
root
;
// root of stack
struct
CostCentreStack
_
*
root
;
// root of stack
StgWord
depth
;
// number of items in the stack
StgWord
depth
;
// number of items in the stack
StgWord64
scc_count
;
// Count of times this CCS is entered
StgWord64
scc_count
;
// Count of times this CCS is entered
...
@@ -103,10 +103,10 @@ typedef struct _CostCentreStack {
...
@@ -103,10 +103,10 @@ typedef struct _CostCentreStack {
// subsequent times we push a certain CC on a CCS we get the same
// subsequent times we push a certain CC on a CCS we get the same
// result).
// result).
typedef
struct
_
IndexTable
{
typedef
struct
IndexTable
_
{
CostCentre
*
cc
;
CostCentre
*
cc
;
CostCentreStack
*
ccs
;
CostCentreStack
*
ccs
;
struct
_
IndexTable
*
next
;
struct
IndexTable
_
*
next
;
unsigned
int
back_edge
;
unsigned
int
back_edge
;
}
IndexTable
;
}
IndexTable
;
...
...
includes/stg/Regs.h
View file @
53fad2ab
...
@@ -80,7 +80,7 @@ typedef struct StgRegTable_ {
...
@@ -80,7 +80,7 @@ typedef struct StgRegTable_ {
StgPtr
rSpLim
;
StgPtr
rSpLim
;
StgPtr
rHp
;
StgPtr
rHp
;
StgPtr
rHpLim
;
StgPtr
rHpLim
;
struct
_
CostCentreStack
*
rCCCS
;
// current cost-centre-stack
struct
CostCentreStack
_
*
rCCCS
;
// current cost-centre-stack
struct
StgTSO_
*
rCurrentTSO
;
struct
StgTSO_
*
rCurrentTSO
;
struct
nursery_
*
rNursery
;
struct
nursery_
*
rNursery
;
struct
bdescr_
*
rCurrentNursery
;
/* Hp/HpLim point into this block */
struct
bdescr_
*
rCurrentNursery
;
/* Hp/HpLim point into this block */
...
...
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