d7e09fcd22551f9f68e02be8f0ec254fa21c7ba2
[ghc-hetmet.git] / includes / rts / Ticky.h
1 /* -----------------------------------------------------------------------------
2  *
3  * (c) The GHC Team, 1998-2009
4  *
5  * TICKY_TICKY types
6  *
7  * ---------------------------------------------------------------------------*/
8
9 #ifndef RTS_TICKY_H
10 #define RTS_TICKY_H
11
12 /* -----------------------------------------------------------------------------
13    The StgEntCounter type - needed regardless of TICKY_TICKY
14    -------------------------------------------------------------------------- */
15
16 typedef struct _StgEntCounter {
17   /* Using StgWord for everything, becuase both the C and asm code
18      generators make trouble if you try to pack things tighter */
19     StgWord     registeredp;    /* 0 == no, 1 == yes */
20     StgInt      arity;          /* arity (static info) */
21     StgInt      stk_args;       /* # of args off stack */
22                                 /* (rest of args are in registers) */
23     char        *str;           /* name of the thing */
24     char        *arg_kinds;     /* info about the args types */
25     StgInt      entry_count;    /* Trips to fast entry code */
26     StgInt      allocs;         /* number of allocations by this fun */
27     struct _StgEntCounter *link;/* link to chain them all together */
28 } StgEntCounter;
29
30 #endif /* RTS_TICKY_H */
31