[project @ 2001-07-23 17:23:19 by simonmar]
[ghc-hetmet.git] / ghc / includes / ClosureTypes.h
1 /* ----------------------------------------------------------------------------
2  * $Id: ClosureTypes.h,v 1.16 2001/07/23 17:23:19 simonmar Exp $
3  * 
4  * (c) The GHC Team, 1998-1999
5  *
6  * Closure Type Constants
7  *
8  * -------------------------------------------------------------------------- */
9
10 #ifndef CLOSURETYPES_H
11 #define CLOSURETYPES_H
12
13 /* Out here because the native code generator needs to get at them. */
14
15 /* Object tag 0 raises an internal error */
16 #define INVALID_OBJECT          0
17 #define CONSTR                  1
18 #define CONSTR_1_0              2
19 #define CONSTR_0_1              3
20 #define CONSTR_2_0              4
21 #define CONSTR_1_1              5
22 #define CONSTR_0_2              6
23 #define CONSTR_INTLIKE          7 
24 #define CONSTR_CHARLIKE         8 
25 #define CONSTR_STATIC           9 
26 #define CONSTR_NOCAF_STATIC     10
27 #define FUN                     11
28 #define FUN_1_0                 12
29 #define FUN_0_1                 13
30 #define FUN_2_0                 14
31 #define FUN_1_1                 15
32 #define FUN_0_2                 16
33 #define FUN_STATIC              17
34 #define THUNK                   18
35 #define THUNK_1_0               19
36 #define THUNK_0_1               20
37 #define THUNK_2_0               21
38 #define THUNK_1_1               22
39 #define THUNK_0_2               23
40 #define THUNK_STATIC            24
41 #define THUNK_SELECTOR          25
42 #define BCO                     26
43 #define AP_UPD                  27
44 #define PAP                     28
45 #define IND                     29
46 #define IND_OLDGEN              30
47 #define IND_PERM                31
48 #define IND_OLDGEN_PERM         32
49 #define IND_STATIC              33
50 #define RET_BCO                 36
51 #define RET_SMALL               37
52 #define RET_VEC_SMALL           38
53 #define RET_BIG                 39
54 #define RET_VEC_BIG             40
55 #define RET_DYN                 41
56 #define UPDATE_FRAME            42
57 #define CATCH_FRAME             43
58 #define STOP_FRAME              44
59 #define SEQ_FRAME               45
60 #define CAF_BLACKHOLE           46
61 #define BLACKHOLE               47
62 #define BLACKHOLE_BQ            48
63 #define SE_BLACKHOLE            49
64 #define SE_CAF_BLACKHOLE        50
65 #define MVAR                    51
66 #define ARR_WORDS               52
67 #define MUT_ARR_PTRS            53
68 #define MUT_ARR_PTRS_FROZEN     54
69 #define MUT_VAR                 55
70 #define MUT_CONS                56
71 #define WEAK                    57
72 #define FOREIGN                 58
73 #define STABLE_NAME             59
74
75 #define TSO                     60
76 #define BLOCKED_FETCH           61
77 #define FETCH_ME                62
78 #define FETCH_ME_BQ             63
79 #define RBH                     64
80
81 #define EVACUATED               65
82
83 #define REMOTE_REF              66
84
85 #define N_CLOSURE_TYPES         67
86
87 #endif /* CLOSURETYPES_H */