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
62 #define UPDATE_FRAME 38
63 #define CATCH_FRAME 39
65 #define CAF_BLACKHOLE 41
67 #define SE_BLACKHOLE 43
68 #define SE_CAF_BLACKHOLE 44
72 #define MUT_ARR_PTRS_CLEAN 48
73 #define MUT_ARR_PTRS_DIRTY 49
74 #define MUT_ARR_PTRS_FROZEN0 50
75 #define MUT_ARR_PTRS_FROZEN 51
76 #define MUT_VAR_CLEAN 52
77 #define MUT_VAR_DIRTY 53
79 #define STABLE_NAME 55
81 #define BLOCKED_FETCH 57
83 #define FETCH_ME_BQ 59
86 #define TVAR_WATCH_QUEUE 63
87 #define INVARIANT_CHECK_QUEUE 64
88 #define ATOMIC_INVARIANT 65
91 #define TREC_HEADER 68
92 #define ATOMICALLY_FRAME 69
93 #define CATCH_RETRY_FRAME 70
94 #define CATCH_STM_FRAME 71
96 #define N_CLOSURE_TYPES 73
98 #endif /* CLOSURETYPES_H */