X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fincludes%2FClosureTypes.h;h=99aaf9ffe50036379f73c97d66ecc667ec3fabda;hb=9c30856ddafb6de78811cf5e8f1b9a8c773ddd5d;hp=3e2b7cfe6e5352cd5c64cd6e29adaec7b88ee5b3;hpb=e7c3f957fd36fd9f6369183b7a31e2a4a4c21b43;p=ghc-hetmet.git diff --git a/ghc/includes/ClosureTypes.h b/ghc/includes/ClosureTypes.h index 3e2b7cf..99aaf9f 100644 --- a/ghc/includes/ClosureTypes.h +++ b/ghc/includes/ClosureTypes.h @@ -1,16 +1,24 @@ /* ---------------------------------------------------------------------------- - * $Id: ClosureTypes.h,v 1.20 2005/02/10 13:02:02 simonmar Exp $ * - * (c) The GHC Team, 1998-1999 + * (c) The GHC Team, 1998-2005 * - * Closure Type Constants + * Closure Type Constants: out here because the native code generator + * needs to get at them. * * -------------------------------------------------------------------------- */ #ifndef CLOSURETYPES_H #define CLOSURETYPES_H -/* Out here because the native code generator needs to get at them. */ +/* + * WARNING WARNING WARNING + * + * Keep the closure tags contiguous: rts/ClosureFlags.c relies on + * this. + * + * If you add or delete any closure types, don't forget to update + * the closure flags table in rts/ClosureFlags.c. + */ /* Object tag 0 raises an internal error */ #define INVALID_OBJECT 0 @@ -60,32 +68,30 @@ #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 +#define SE_BLACKHOLE 47 +#define SE_CAF_BLACKHOLE 48 +#define MVAR 59 +#define ARR_WORDS 50 +#define MUT_ARR_PTRS 51 +#define MUT_ARR_PTRS_FROZEN0 52 +#define MUT_ARR_PTRS_FROZEN 53 +#define MUT_VAR 54 +#define WEAK 55 +#define STABLE_NAME 56 +#define TSO 57 +#define BLOCKED_FETCH 68 +#define FETCH_ME 69 +#define FETCH_ME_BQ 60 +#define RBH 61 +#define EVACUATED 62 +#define REMOTE_REF 63 +#define TVAR_WAIT_QUEUE 64 +#define TVAR 65 +#define TREC_CHUNK 66 +#define TREC_HEADER 67 +#define ATOMICALLY_FRAME 78 +#define CATCH_RETRY_FRAME 79 +#define CATCH_STM_FRAME 70 +#define N_CLOSURE_TYPES 71 #endif /* CLOSURETYPES_H */