StgMiscClosures.h 4.54 KB
Newer Older
1
/* -----------------------------------------------------------------------------
sof's avatar
sof committed
2
 * $Id: StgMiscClosures.h,v 1.11 1999/03/02 19:44:20 sof Exp $
3 4
 *
 * (c) The GHC Team, 1998-1999
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 *
 * Entry code for various built-in closure types.
 *
 * ---------------------------------------------------------------------------*/

/* The naming scheme here follows the naming scheme for closure types
 * defined in InfoTables.h.  The actual info tables and entry code for
 * these objects can be found in StgMiscClosures.hc.
 */

/* entry code */

STGFUN(IND_entry);
STGFUN(IND_STATIC_entry);
STGFUN(IND_PERM_entry);
STGFUN(IND_OLDGEN_entry);
STGFUN(IND_OLDGEN_PERM_entry);
STGFUN(CAF_UNENTERED_entry);
STGFUN(CAF_ENTERED_entry);
STGFUN(CAF_BLACKHOLE_entry);
STGFUN(BLACKHOLE_entry);
26
STGFUN(BLACKHOLE_BQ_entry);
27 28 29 30
STGFUN(BCO_entry);
STGFUN(EVACUATED_entry);
STGFUN(FOREIGN_entry);
STGFUN(WEAK_entry);
31
STGFUN(NO_FINALIZER_entry);
32
STGFUN(DEAD_WEAK_entry);
33
STGFUN(STABLE_NAME_entry);
34 35 36 37 38 39 40 41
STGFUN(TSO_entry);
STGFUN(FULL_MVAR_entry);
STGFUN(EMPTY_MVAR_entry);
STGFUN(ARR_WORDS_entry);
STGFUN(MUT_ARR_PTRS_entry);
STGFUN(MUT_ARR_PTRS_FROZEN_entry);
STGFUN(MUT_VAR_entry);
STGFUN(END_TSO_QUEUE_entry);
42 43
STGFUN(MUT_CONS_entry);
STGFUN(END_MUT_LIST_entry);
44 45 46 47
STGFUN(dummy_ret_entry);

/* info tables */

sof's avatar
sof committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
extern DLL_IMPORT_RTS const StgInfoTable IND_info;
extern DLL_IMPORT_RTS const StgInfoTable IND_STATIC_info;
extern DLL_IMPORT_RTS const StgInfoTable IND_PERM_info;
extern DLL_IMPORT_RTS const StgInfoTable IND_OLDGEN_info;
extern DLL_IMPORT_RTS const StgInfoTable IND_OLDGEN_PERM_info;
extern DLL_IMPORT_RTS const StgInfoTable CAF_UNENTERED_info;
extern DLL_IMPORT_RTS const StgInfoTable CAF_ENTERED_info;
extern DLL_IMPORT_RTS const StgInfoTable CAF_BLACKHOLE_info;
extern DLL_IMPORT_RTS const StgInfoTable BLACKHOLE_info;
extern DLL_IMPORT_RTS const StgInfoTable BLACKHOLE_BQ_info;
extern DLL_IMPORT_RTS const StgInfoTable BCO_info;
extern DLL_IMPORT_RTS const StgInfoTable EVACUATED_info;
extern DLL_IMPORT_RTS const StgInfoTable FOREIGN_info;
extern DLL_IMPORT_RTS const StgInfoTable WEAK_info;
extern DLL_IMPORT_RTS const StgInfoTable DEAD_WEAK_info;
extern DLL_IMPORT_RTS const StgInfoTable STABLE_NAME_info;
extern DLL_IMPORT_RTS const StgInfoTable FULL_MVAR_info;
extern DLL_IMPORT_RTS const StgInfoTable EMPTY_MVAR_info;
extern DLL_IMPORT_RTS const StgInfoTable TSO_info;
extern DLL_IMPORT_RTS const StgInfoTable ARR_WORDS_info;
extern DLL_IMPORT_RTS const StgInfoTable MUT_ARR_WORDS_info;
extern DLL_IMPORT_RTS const StgInfoTable MUT_ARR_PTRS_info;
extern DLL_IMPORT_RTS const StgInfoTable MUT_ARR_PTRS_FROZEN_info;
extern DLL_IMPORT_RTS const StgInfoTable MUT_VAR_info;
extern DLL_IMPORT_RTS const StgInfoTable END_TSO_QUEUE_info;
extern DLL_IMPORT_RTS const StgInfoTable MUT_CONS_info;
extern DLL_IMPORT_RTS const StgInfoTable END_MUT_LIST_info;
extern DLL_IMPORT_RTS const StgInfoTable catch_info;
extern DLL_IMPORT_RTS const StgInfoTable seq_info;
extern DLL_IMPORT_RTS const StgInfoTable dummy_ret_info;
78 79 80 81 82 83 84 85 86 87

#ifdef INTERPRETER

EXTFUN(Hugs_CONSTR_entry);
extern const StgInfoTable ret_bco_info;

#endif /* INTERPRETER */

/* closures */

sof's avatar
sof committed
88 89 90 91
extern DLL_IMPORT_DATA StgClosure END_TSO_QUEUE_closure;
extern DLL_IMPORT_DATA StgClosure END_MUT_LIST_closure;
extern DLL_IMPORT_DATA StgClosure NO_FINALIZER_closure;
extern DLL_IMPORT_DATA StgClosure dummy_ret_closure;
92

sof's avatar
sof committed
93 94
extern DLL_IMPORT_DATA StgIntCharlikeClosure CHARLIKE_closure[];
extern DLL_IMPORT_DATA StgIntCharlikeClosure INTLIKE_closure[];
95 96 97 98 99 100 101

/* standard entry points */

extern StgFun stg_error_entry;

/* standard selector thunks */

sof's avatar
sof committed
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
#ifdef COMPILING_RTS
#define EI__ EI_
#else
#define EI__ EDI_
#endif

EI__ __sel_0_upd_info;
EI__ __sel_1_upd_info;
EI__ __sel_2_upd_info;
EI__ __sel_3_upd_info;
EI__ __sel_4_upd_info;
EI__ __sel_5_upd_info;
EI__ __sel_6_upd_info;
EI__ __sel_7_upd_info;
EI__ __sel_8_upd_info;
EI__ __sel_8_upd_info;
EI__ __sel_9_upd_info;
EI__ __sel_10_upd_info;
EI__ __sel_11_upd_info;
EI__ __sel_12_upd_info;
EI__ __sel_13_upd_info;
EI__ __sel_14_upd_info;
EI__ __sel_15_upd_info;

EI__ __sel_0_noupd_info;
EI__ __sel_1_noupd_info;
EI__ __sel_2_noupd_info;
EI__ __sel_3_noupd_info;
EI__ __sel_4_noupd_info;
EI__ __sel_5_noupd_info;
EI__ __sel_6_noupd_info;
EI__ __sel_7_noupd_info;
EI__ __sel_8_noupd_info;
EI__ __sel_9_noupd_info;
EI__ __sel_10_noupd_info;
EI__ __sel_11_noupd_info;
EI__ __sel_12_noupd_info;
EI__ __sel_13_noupd_info;
EI__ __sel_14_noupd_info;
EI__ __sel_15_noupd_info;
142 143 144

/* standard ap thunks */

sof's avatar
sof committed
145 146 147 148 149 150 151 152
EI__ __ap_1_upd_info;
EI__ __ap_2_upd_info;
EI__ __ap_3_upd_info;
EI__ __ap_4_upd_info;
EI__ __ap_5_upd_info;
EI__ __ap_6_upd_info;
EI__ __ap_7_upd_info;
EI__ __ap_8_upd_info;
153