X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FCmm.h;h=0dde2c82c155cbac99177d44c1775b8cb5175c62;hb=b4d045ae655e5eae25b88917cfe75d7dc7689c21;hp=608e97dfbdfc5a033f64e1064b4c75d4fe4af0d4;hpb=a558bffdbf9288a5c6620b9553ec4839c8b904e4;p=ghc-hetmet.git diff --git a/ghc/includes/Cmm.h b/ghc/includes/Cmm.h index 608e97d..0dde2c8 100644 --- a/ghc/includes/Cmm.h +++ b/ghc/includes/Cmm.h @@ -346,7 +346,13 @@ // macros which use the appropriate version here: // #ifdef TABLES_NEXT_TO_CODE -#define StgFunInfoExtra_slow_apply(i) StgFunInfoExtraRev_slow_apply(i) + // when TABLES_NEXT_TO_CODE, slow_apply is stored as an offset + // instead of the normal pointer. + +#define StgFunInfoExtra_slow_apply(fun_info) \ + (StgFunInfoExtraRev_slow_apply_offset(fun_info) \ + + (fun_info) + SIZEOF_StgFunInfoExtraRev + SIZEOF_StgInfoTable) + #define StgFunInfoExtra_fun_type(i) StgFunInfoExtraRev_fun_type(i) #define StgFunInfoExtra_arity(i) StgFunInfoExtraRev_arity(i) #define StgFunInfoExtra_bitmap(i) StgFunInfoExtraRev_bitmap(i)