1 /* ----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2005
5 * Closure Type Constants: out here because the native code generator
6 * needs to get at them.
8 * -------------------------------------------------------------------------- */
10 #ifndef CLOSURETYPES_H
11 #define CLOSURETYPES_H
14 * WARNING WARNING WARNING
16 * Keep the closure tags contiguous: rts/ClosureFlags.c relies on
19 * If you add or delete any closure types, don't forget to update
20 * the closure flags table in rts/ClosureFlags.c.
23 /* Object tag 0 raises an internal error */
24 #define INVALID_OBJECT 0
31 #define CONSTR_STATIC 7
32 #define CONSTR_NOCAF_STATIC 8
46 #define THUNK_STATIC 22
47 #define THUNK_SELECTOR 23
55 #define IND_OLDGEN_PERM 31
59 #define RET_VEC_SMALL 35
61 #define RET_VEC_BIG 37
64 #define UPDATE_FRAME 40
65 #define CATCH_FRAME 41
67 #define CAF_BLACKHOLE 43
69 #define SE_BLACKHOLE 45
70 #define SE_CAF_BLACKHOLE 46
73 #define MUT_ARR_PTRS_CLEAN 49
74 #define MUT_ARR_PTRS_DIRTY 50
75 #define MUT_ARR_PTRS_FROZEN0 51
76 #define MUT_ARR_PTRS_FROZEN 52
77 #define MUT_VAR_CLEAN 53
78 #define MUT_VAR_DIRTY 54
80 #define STABLE_NAME 56
82 #define BLOCKED_FETCH 58
84 #define FETCH_ME_BQ 60
88 #define TVAR_WATCH_QUEUE 64
89 #define INVARIANT_CHECK_QUEUE 65
90 #define ATOMIC_INVARIANT 66
93 #define TREC_HEADER 69
94 #define ATOMICALLY_FRAME 70
95 #define CATCH_RETRY_FRAME 71
96 #define CATCH_STM_FRAME 72
97 #define N_CLOSURE_TYPES 73
99 #endif /* CLOSURETYPES_H */