My favorites | Sign in
Project Home Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones  
Changes to /ByteLoader/byterun.h
000000000000 vs. c21739460ca5 Compare: vs.  Format:
Revision c21739460ca5
Go to: 
Project members, sign in to write a code review
/ByteLoader/byterun.h /ByteLoader/byterun.h   c21739460ca5
  1 /* -*- buffer-read-only: t -*-
  2 *
  3 * Copyright (c) 1996-1999 Malcolm Beattie
  4 * Copyright (c) 2008 Reini Urban
  5 *
  6 * You may distribute under the terms of either the GNU General Public
  7 * License or the Artistic License, as specified in the README file.
  8 *
  9 */
  10 /*
  11 * This file is autogenerated from bytecode.pl. Changes made here will be lost.
  12 */
  13 #if PERL_VERSION < 10
  14 #define PL_RSFP PL_rsfp
  15 #else
  16 #define PL_RSFP PL_parser->rsfp
  17 #endif
  18
  19 struct byteloader_fdata {
  20 SV *datasv;
  21 int next_out;
  22 int idx;
  23 };
  24
  25 struct byteloader_pv_state {
  26 char *pvx;
  27 XPV xpv;
  28 };
  29
  30 struct byteloader_state {
  31 struct byteloader_fdata *bs_fdata;
  32 SV *bs_sv;
  33 void **bs_obj_list;
  34 int bs_obj_list_fill;
  35 int bs_ix;
  36 struct byteloader_pv_state bs_pv;
  37 int bs_iv_overflows;
  38 };
  39
  40 int bl_getc(struct byteloader_fdata *);
  41 int bl_read(struct byteloader_fdata *, char *, size_t, size_t);
  42 extern int byterun(pTHX_ struct byteloader_state *);
  43
  44 enum {
  45 INSN_RET, /* 0 */
  46 INSN_LDSV, /* 1 */
  47 INSN_LDOP, /* 2 */
  48 INSN_STSV, /* 3 */
  49 INSN_STOP, /* 4 */
  50 INSN_STPV, /* 5 */
  51 INSN_LDSPECSV, /* 6 */
  52 INSN_LDSPECSVX, /* 7 */
  53 INSN_NEWSV, /* 8 */
  54 INSN_NEWSVX, /* 9 */
  55 INSN_NOP, /* 10 */
  56 INSN_NEWOP, /* 11 */
  57 INSN_NEWOPX, /* 12 */
  58 INSN_NEWOPN, /* 13 */
  59 INSN_NEWPV, /* 14 */
  60 INSN_PV_CUR, /* 15 */
  61 INSN_PV_FREE, /* 16 */
  62 INSN_SV_UPGRADE, /* 17 */
  63 INSN_SV_REFCNT, /* 18 */
  64 INSN_SV_REFCNT_ADD, /* 19 */
  65 INSN_SV_FLAGS, /* 20 */
  66 INSN_XRV, /* 21 */
  67 INSN_XPV, /* 22 */
  68 INSN_XPV_CUR, /* 23 */
  69 INSN_XPV_LEN, /* 24 */
  70 INSN_XIV, /* 25 */
  71 INSN_XNV, /* 26 */
  72 INSN_XLV_TARGOFF, /* 27 */
  73 INSN_XLV_TARGLEN, /* 28 */
  74 INSN_XLV_TARG, /* 29 */
  75 INSN_XLV_TYPE, /* 30 */
  76 INSN_XBM_USEFUL, /* 31 */
  77 INSN_XBM_PREVIOUS, /* 32 */
  78 INSN_XBM_RARE, /* 33 */
  79 INSN_XFM_LINES, /* 34 */
  80 INSN_COMMENT, /* 35 */
  81 INSN_XIO_LINES, /* 36 */
  82 INSN_XIO_PAGE, /* 37 */
  83 INSN_XIO_PAGE_LEN, /* 38 */
  84 INSN_XIO_LINES_LEFT, /* 39 */
  85 INSN_XIO_TOP_NAME, /* 40 */
  86 INSN_XIO_TOP_GV, /* 41 */
  87 INSN_XIO_FMT_NAME, /* 42 */
  88 INSN_XIO_FMT_GV, /* 43 */
  89 INSN_XIO_BOTTOM_NAME, /* 44 */
  90 INSN_XIO_BOTTOM_GV, /* 45 */
  91 INSN_XIO_TYPE, /* 46 */
  92 INSN_XIO_FLAGS, /* 47 */
  93 INSN_XCV_XSUBANY, /* 48 */
  94 INSN_XCV_STASH, /* 49 */
  95 INSN_XCV_START, /* 50 */
  96 INSN_XCV_ROOT, /* 51 */
  97 INSN_XCV_GV, /* 52 */
  98 INSN_XCV_FILE, /* 53 */
  99 INSN_XCV_DEPTH, /* 54 */
  100 INSN_XCV_PADLIST, /* 55 */
  101 INSN_XCV_OUTSIDE, /* 56 */
  102 INSN_XCV_OUTSIDE_SEQ, /* 57 */
  103 INSN_XCV_FLAGS, /* 58 */
  104 INSN_AV_EXTEND, /* 59 */
  105 INSN_AV_PUSHX, /* 60 */
  106 INSN_AV_PUSH, /* 61 */
  107 INSN_XAV_FILL, /* 62 */
  108 INSN_XAV_MAX, /* 63 */
  109 INSN_XAV_FLAGS, /* 64 */
  110 INSN_XHV_NAME, /* 65 */
  111 INSN_HV_STORE, /* 66 */
  112 INSN_SV_MAGIC, /* 67 */
  113 INSN_MG_OBJ, /* 68 */
  114 INSN_MG_PRIVATE, /* 69 */
  115 INSN_MG_FLAGS, /* 70 */
  116 INSN_MG_NAME, /* 71 */
  117 INSN_MG_NAMEX, /* 72 */
  118 INSN_XMG_STASH, /* 73 */
  119 INSN_GV_FETCHPV, /* 74 */
  120 INSN_GV_FETCHPVX, /* 75 */
  121 INSN_GV_STASHPV, /* 76 */
  122 INSN_GV_STASHPVX, /* 77 */
  123 INSN_GP_SV, /* 78 */
  124 INSN_GP_REFCNT, /* 79 */
  125 INSN_GP_REFCNT_ADD, /* 80 */
  126 INSN_GP_AV, /* 81 */
  127 INSN_GP_HV, /* 82 */
  128 INSN_GP_CV, /* 83 */
  129 INSN_GP_FILE, /* 84 */
  130 INSN_GP_IO, /* 85 */
  131 INSN_GP_FORM, /* 86 */
  132 INSN_GP_CVGEN, /* 87 */
  133 INSN_GP_LINE, /* 88 */
  134 INSN_GP_SHARE, /* 89 */
  135 INSN_XGV_FLAGS, /* 90 */
  136 INSN_OP_NEXT, /* 91 */
  137 INSN_OP_SIBLING, /* 92 */
  138 INSN_OP_PPADDR, /* 93 */
  139 INSN_OP_TARG, /* 94 */
  140 INSN_OP_TYPE, /* 95 */
  141 INSN_OP_OPT, /* 96 */
  142 INSN_OP_LATEFREE, /* 97 */
  143 INSN_OP_LATEFREED, /* 98 */
  144 INSN_OP_ATTACHED, /* 99 */
  145 INSN_OP_FLAGS, /* 100 */
  146 INSN_OP_PRIVATE, /* 101 */
  147 INSN_OP_FIRST, /* 102 */
  148 INSN_OP_LAST, /* 103 */
  149 INSN_OP_OTHER, /* 104 */
  150 INSN_OP_PMREPLROOT, /* 105 */
  151 INSN_OP_PMREPLSTART, /* 106 */
  152 INSN_OP_PMSTASHPV, /* 107 */
  153 INSN_OP_PMREPLROOTPO, /* 108 */
  154 INSN_OP_PMREPLROOTGV, /* 109 */
  155 INSN_PREGCOMP, /* 110 */
  156 INSN_OP_PMFLAGS, /* 111 */
  157 INSN_OP_SV, /* 112 */
  158 INSN_OP_PADIX, /* 113 */
  159 INSN_OP_PV, /* 114 */
  160 INSN_OP_PV_TR, /* 115 */
  161 INSN_OP_REDOOP, /* 116 */
  162 INSN_OP_NEXTOP, /* 117 */
  163 INSN_OP_LASTOP, /* 118 */
  164 INSN_COP_LABEL, /* 119 */
  165 INSN_COP_STASHPV, /* 120 */
  166 INSN_COP_FILE, /* 121 */
  167 INSN_COP_SEQ, /* 122 */
  168 INSN_COP_LINE, /* 123 */
  169 INSN_COP_WARNINGS, /* 124 */
  170 INSN_MAIN_START, /* 125 */
  171 INSN_MAIN_ROOT, /* 126 */
  172 INSN_MAIN_CV, /* 127 */
  173 INSN_CURPAD, /* 128 */
  174 INSN_PUSH_BEGIN, /* 129 */
  175 INSN_PUSH_INIT, /* 130 */
  176 INSN_PUSH_END, /* 131 */
  177 INSN_CURSTASH, /* 132 */
  178 INSN_DEFSTASH, /* 133 */
  179 INSN_DATA, /* 134 */
  180 INSN_INCAV, /* 135 */
  181 INSN_LOAD_GLOB, /* 136 */
  182 INSN_REGEX_PADAV, /* 137 */
  183 INSN_DOWARN, /* 138 */
  184 INSN_COMPPAD_NAME, /* 139 */
  185 INSN_XGV_STASH, /* 140 */
  186 INSN_SIGNAL, /* 141 */
  187 INSN_FORMFEED, /* 142 */
  188 MAX_INSN = 142
  189 };
  190
  191 enum {
  192 OPt_OP, /* 0 */
  193 OPt_UNOP, /* 1 */
  194 OPt_BINOP, /* 2 */
  195 OPt_LOGOP, /* 3 */
  196 OPt_LISTOP, /* 4 */
  197 OPt_PMOP, /* 5 */
  198 OPt_SVOP, /* 6 */
  199 OPt_PADOP, /* 7 */
  200 OPt_PVOP, /* 8 */
  201 OPt_LOOP, /* 9 */
  202 OPt_COP /* 10 */
  203 };
  204
  205 /* ex: set ro: */
Powered by Google Project Hosting