[project @ 2004-11-18 09:56:07 by tharris]
[ghc-hetmet.git] / ghc / includes / ClosureTypes.h
1 /* ----------------------------------------------------------------------------
2  * $Id: ClosureTypes.h,v 1.19 2004/11/18 09:56:17 tharris 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                      27
44 #define PAP                     28
45 #define AP_STACK                29
46 #define IND                     30
47 #define IND_OLDGEN              31
48 #define IND_PERM                32
49 #define IND_OLDGEN_PERM         33
50 #define IND_STATIC              34
51 #define RET_BCO                 35
52 #define RET_SMALL               36
53 #define RET_VEC_SMALL           37
54 #define RET_BIG                 38
55 #define RET_VEC_BIG             39
56 #define RET_DYN                 40
57 #define RET_FUN                 41
58 #define UPDATE_FRAME            42
59 #define CATCH_FRAME             43
60 #define STOP_FRAME              44
61 #define CAF_BLACKHOLE           45
62 #define BLACKHOLE               46
63 #define BLACKHOLE_BQ            47
64 #define SE_BLACKHOLE            48
65 #define SE_CAF_BLACKHOLE        49
66 #define MVAR                    50
67 #define ARR_WORDS               51
68 #define MUT_ARR_PTRS            52
69 #define MUT_ARR_PTRS_FROZEN     53
70 #define MUT_VAR                 54
71 #define MUT_CONS                55
72 #define WEAK                    56
73 #define FOREIGN                 57
74 #define STABLE_NAME             58
75 #define TSO                     59
76 #define BLOCKED_FETCH           60
77 #define FETCH_ME                61
78 #define FETCH_ME_BQ             62
79 #define RBH                     63
80 #define EVACUATED               64
81 #define REMOTE_REF              65
82 #define TVAR_WAIT_QUEUE         66
83 #define TVAR                    67
84 #define TREC_CHUNK              68
85 #define TREC_HEADER             69
86 #define ATOMICALLY_FRAME        70
87 #define CATCH_RETRY_FRAME       71
88 #define CATCH_STM_FRAME         72
89 #define N_CLOSURE_TYPES         73
90                                 
91 #endif /* CLOSURETYPES_H */