StgMiscClosures.h 3.69 KB
Newer Older
1
/* -----------------------------------------------------------------------------
2
 * $Id: StgMiscClosures.h,v 1.4 1999/01/15 12:47:19 sewardj Exp $
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
 *
 * 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);
STGFUN(BCO_entry);
STGFUN(EVACUATED_entry);
STGFUN(FOREIGN_entry);
STGFUN(WEAK_entry);
STGFUN(DEAD_WEAK_entry);
STGFUN(TSO_entry);
STGFUN(FULL_MVAR_entry);
STGFUN(EMPTY_MVAR_entry);
STGFUN(ARR_WORDS_entry);
STGFUN(MUT_ARR_WORDS_entry);
STGFUN(MUT_ARR_PTRS_entry);
STGFUN(MUT_ARR_PTRS_FROZEN_entry);
STGFUN(MUT_VAR_entry);
STGFUN(END_TSO_QUEUE_entry);
38 39
STGFUN(MUT_CONS_entry);
STGFUN(END_MUT_LIST_entry);
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
STGFUN(dummy_ret_entry);

/* info tables */

extern const StgInfoTable IND_info;
extern const StgInfoTable IND_STATIC_info;
extern const StgInfoTable IND_PERM_info;
extern const StgInfoTable IND_OLDGEN_info;
extern const StgInfoTable IND_OLDGEN_PERM_info;
extern const StgInfoTable CAF_UNENTERED_info;
extern const StgInfoTable CAF_ENTERED_info;
extern const StgInfoTable CAF_BLACKHOLE_info;
extern const StgInfoTable BLACKHOLE_info;
extern const StgInfoTable BCO_info;
extern const StgInfoTable EVACUATED_info;
extern const StgInfoTable FOREIGN_info;
extern const StgInfoTable WEAK_info;
extern const StgInfoTable DEAD_WEAK_info;
extern const StgInfoTable FULL_MVAR_info;
extern const StgInfoTable EMPTY_MVAR_info;
extern const StgInfoTable TSO_info;
extern const StgInfoTable ARR_WORDS_info;
extern const StgInfoTable MUT_ARR_WORDS_info;
extern const StgInfoTable MUT_ARR_PTRS_info;
extern const StgInfoTable MUT_ARR_PTRS_FROZEN_info;
extern const StgInfoTable MUT_VAR_info;
extern const StgInfoTable END_TSO_QUEUE_info;
67 68
extern const StgInfoTable MUT_CONS_info;
extern const StgInfoTable END_MUT_LIST_info;
69 70 71 72 73 74 75 76 77 78 79 80 81
extern const StgInfoTable catch_info;
extern const StgInfoTable seq_info;
extern const StgInfoTable dummy_ret_info;

#ifdef INTERPRETER

EXTFUN(Hugs_CONSTR_entry);
extern const StgInfoTable ret_bco_info;

#endif /* INTERPRETER */

/* closures */

82 83 84
extern StgClosure END_TSO_QUEUE_closure;
extern StgClosure END_MUT_LIST_closure;
extern StgClosure dummy_ret_closure;
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 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

extern StgIntCharlikeClosure CHARLIKE_closure[];
extern StgIntCharlikeClosure INTLIKE_closure[];

/* standard entry points */

extern StgFun stg_error_entry;

/* standard selector thunks */

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;

/* standard ap thunks */

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;