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