X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FStgMiscClosures.h;h=eeaaf3ad4da6fd4d314d765c6a2834db351c8599;hb=bc18ae0fa000f65f2a6b40773c56a2f0d2263d72;hp=771ef96c229a114feea33df7d7174908eec73266;hpb=c919b08841077b2c28deffa65a7d84a22aa6c6ba;p=ghc-hetmet.git diff --git a/ghc/includes/StgMiscClosures.h b/ghc/includes/StgMiscClosures.h index 771ef96..eeaaf3a 100644 --- a/ghc/includes/StgMiscClosures.h +++ b/ghc/includes/StgMiscClosures.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: StgMiscClosures.h,v 1.25 2000/12/14 16:33:18 sewardj Exp $ + * $Id: StgMiscClosures.h,v 1.39 2001/07/09 19:45:16 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -21,8 +21,8 @@ STGFUN(stg_IND_OLDGEN_entry); STGFUN(stg_IND_OLDGEN_PERM_entry); STGFUN(stg_CAF_UNENTERED_entry); STGFUN(stg_CAF_ENTERED_entry); -STGFUN(stg_CAF_BLACKHOLE_entry); STGFUN(stg_BLACKHOLE_entry); +STGFUN(stg_CAF_BLACKHOLE_entry); STGFUN(stg_BLACKHOLE_BQ_entry); #ifdef SMP STGFUN(stg_WHITEHOLE_entry); @@ -53,8 +53,7 @@ STGFUN(stg_MUT_CONS_entry); STGFUN(stg_END_MUT_LIST_entry); STGFUN(stg_dummy_ret_entry); -#ifdef GHCI -/* entry code for constructors created by the metacircular interpreter */ +/* entry code for constructors created by the bytecode interpreter */ STGFUN(stg_interp_constr_entry); STGFUN(stg_interp_constr1_entry); STGFUN(stg_interp_constr2_entry); @@ -64,14 +63,32 @@ STGFUN(stg_interp_constr5_entry); STGFUN(stg_interp_constr6_entry); STGFUN(stg_interp_constr7_entry); STGFUN(stg_interp_constr8_entry); -#endif +/* Magic glue code for when compiled code returns a value in R1/F1/D1 + or a VoidRep to the interpreter. */ +extern DLL_IMPORT_RTS const vec_info_8 stg_ctoi_ret_R1p_info; +extern DLL_IMPORT_RTS const vec_info_8 stg_ctoi_ret_R1n_info; +extern DLL_IMPORT_RTS const vec_info_8 stg_ctoi_ret_F1_info; +extern DLL_IMPORT_RTS const vec_info_8 stg_ctoi_ret_D1_info; +extern DLL_IMPORT_RTS const vec_info_8 stg_ctoi_ret_V_info; + +/* Used by the interpreter to return an unboxed value on the stack to + compiled code. */ +extern DLL_IMPORT_RTS const StgInfoTable stg_gc_unbx_r1_ret_info; +extern DLL_IMPORT_RTS const StgInfoTable stg_gc_f1_ret_info; +extern DLL_IMPORT_RTS const StgInfoTable stg_gc_d1_ret_info; + +/* this is the NIL ptr for a TSO queue (e.g. runnable queue) */ +#define END_TSO_QUEUE ((StgTSO *)(void*)&stg_END_TSO_QUEUE_closure) +/* this is the NIL ptr for a list CAFs */ +#define END_ECAF_LIST ((StgCAF *)(void*)&stg_END_TSO_QUEUE_closure) #if defined(PAR) || defined(GRAN) /* this is the NIL ptr for a blocking queue */ -# define END_BQ_QUEUE ((StgBlockingQueueElement *)(void*)&END_TSO_QUEUE_closure) +# define END_BQ_QUEUE ((StgBlockingQueueElement *)(void*)&stg_END_TSO_QUEUE_closure) /* this is the NIL ptr for a blocked fetch queue (as in PendingFetches in GUM) */ -# define END_BF_QUEUE ((StgBlockedFetch *)(void*)&END_TSO_QUEUE_closure) +# define END_BF_QUEUE ((StgBlockedFetch *)(void*)&stg_END_TSO_QUEUE_closure) #endif +/* ToDo?: different name for end of sleeping queue ? -- HWL */ /* info tables */ @@ -82,8 +99,8 @@ extern DLL_IMPORT_RTS const StgInfoTable stg_IND_OLDGEN_info; extern DLL_IMPORT_RTS const StgInfoTable stg_IND_OLDGEN_PERM_info; extern DLL_IMPORT_RTS const StgInfoTable stg_CAF_UNENTERED_info; extern DLL_IMPORT_RTS const StgInfoTable stg_CAF_ENTERED_info; -extern DLL_IMPORT_RTS const StgInfoTable stg_CAF_BLACKHOLE_info; extern DLL_IMPORT_RTS const StgInfoTable stg_BLACKHOLE_info; +extern DLL_IMPORT_RTS const StgInfoTable stg_CAF_BLACKHOLE_info; extern DLL_IMPORT_RTS const StgInfoTable stg_BLACKHOLE_BQ_info; #ifdef SMP extern DLL_IMPORT_RTS const StgInfoTable stg_WHITEHOLE_info; @@ -95,6 +112,9 @@ extern DLL_IMPORT_RTS const StgInfoTable stg_SE_CAF_BLACKHOLE_info; #if defined(PAR) || defined(GRAN) extern DLL_IMPORT_RTS const StgInfoTable stg_RBH_info; #endif +#if defined(PAR) +extern DLL_IMPORT_RTS const StgInfoTable stg_FETCH_ME_BQ_info; +#endif extern DLL_IMPORT_RTS const StgInfoTable stg_BCO_info; extern DLL_IMPORT_RTS const StgInfoTable stg_EVACUATED_info; extern DLL_IMPORT_RTS const StgInfoTable stg_FOREIGN_info; @@ -116,14 +136,6 @@ extern DLL_IMPORT_RTS const StgInfoTable stg_catch_info; extern DLL_IMPORT_RTS const StgInfoTable stg_seq_info; extern DLL_IMPORT_RTS const StgInfoTable stg_dummy_ret_info; -#ifdef INTERPRETER - -EXTFUN(Hugs_CONSTR_entry); - -extern const vec_info_8 stg_ret_bco_info; - -#endif /* INTERPRETER */ - /* closures */ extern DLL_IMPORT_RTS StgClosure stg_END_TSO_QUEUE_closure;