X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FClosureTypes.h;h=f8840264f374776ac616ca03db5c507517dfb722;hb=76c0086f090327eecaf510de8bc4efc4dee996dc;hp=243111e3308452101092a8379fb3d95c4d5ef06a;hpb=03dc2dd3dd814ad85cc4c45e9cafc7b73163c8be;p=ghc-hetmet.git diff --git a/ghc/includes/ClosureTypes.h b/ghc/includes/ClosureTypes.h index 243111e..f884026 100644 --- a/ghc/includes/ClosureTypes.h +++ b/ghc/includes/ClosureTypes.h @@ -1,15 +1,24 @@ /* ---------------------------------------------------------------------------- * - * (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 @@ -59,17 +68,17 @@ #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 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 MUT_VAR_CLEAN 55 +#define MUT_VAR_DIRTY 56 +#define WEAK 57 #define STABLE_NAME 58 #define TSO 59 #define BLOCKED_FETCH 60