[project @ 2002-12-05 14:20:55 by stolz]
[ghc-hetmet.git] / ghc / includes / ClosureTypes.h
1 /* ----------------------------------------------------------------------------
2  * $Id: ClosureTypes.h,v 1.17 2002/03/26 11:09:34 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                 34
51 #define RET_SMALL               35
52 #define RET_VEC_SMALL           36
53 #define RET_BIG                 37
54 #define RET_VEC_BIG             38
55 #define RET_DYN                 39
56 #define UPDATE_FRAME            40
57 #define CATCH_FRAME             41
58 #define STOP_FRAME              42
59 #define SEQ_FRAME               43
60 #define CAF_BLACKHOLE           44
61 #define BLACKHOLE               45
62 #define BLACKHOLE_BQ            46
63 #define SE_BLACKHOLE            47
64 #define SE_CAF_BLACKHOLE        48
65 #define MVAR                    49
66 #define ARR_WORDS               50
67 #define MUT_ARR_PTRS            51
68 #define MUT_ARR_PTRS_FROZEN     52
69 #define MUT_VAR                 53
70 #define MUT_CONS                54
71 #define WEAK                    55
72 #define FOREIGN                 56
73 #define STABLE_NAME             57
74 #define TSO                     58
75 #define BLOCKED_FETCH           59
76 #define FETCH_ME                60
77 #define FETCH_ME_BQ             61
78 #define RBH                     62
79 #define EVACUATED               63
80 #define REMOTE_REF              64
81 #define N_CLOSURE_TYPES         65
82
83 #endif /* CLOSURETYPES_H */