X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FClosureTypes.h;h=18e94489b9d12bd71c5a3e7e600fabcfcab3bc4f;hb=da69fa9c5047c5b0d05bdb05eaddefa1eb5d5a36;hp=c384ded7ed8c6a66f1de4b8ca6b7db83377085a7;hpb=0bffc410964e1688ad80d277d53400659e697ab5;p=ghc-hetmet.git diff --git a/ghc/includes/ClosureTypes.h b/ghc/includes/ClosureTypes.h index c384ded..18e9448 100644 --- a/ghc/includes/ClosureTypes.h +++ b/ghc/includes/ClosureTypes.h @@ -1,16 +1,24 @@ /* ---------------------------------------------------------------------------- - * $Id: ClosureTypes.h,v 1.18 2002/12/11 15:36:37 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,25 +68,31 @@ #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_FROZEN 53 -#define MUT_VAR 54 -#define MUT_CONS 55 +#define SE_BLACKHOLE 47 +#define SE_CAF_BLACKHOLE 48 +#define MVAR 49 +#define ARR_WORDS 50 +#define MUT_ARR_PTRS_CLEAN 51 +#define MUT_ARR_PTRS_DIRTY 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 N_CLOSURE_TYPES 66 - +#define STABLE_NAME 57 +#define TSO 58 +#define BLOCKED_FETCH 59 +#define FETCH_ME 60 +#define FETCH_ME_BQ 61 +#define RBH 62 +#define EVACUATED 63 +#define REMOTE_REF 64 +#define TVAR_WAIT_QUEUE 65 +#define TVAR 66 +#define TREC_CHUNK 67 +#define TREC_HEADER 68 +#define ATOMICALLY_FRAME 69 +#define CATCH_RETRY_FRAME 70 +#define CATCH_STM_FRAME 71 +#define N_CLOSURE_TYPES 72 + #endif /* CLOSURETYPES_H */