diff options
Diffstat (limited to 'ext/ByteLoader/byterun.h')
-rw-r--r-- | ext/ByteLoader/byterun.h | 282 |
1 files changed, 144 insertions, 138 deletions
diff --git a/ext/ByteLoader/byterun.h b/ext/ByteLoader/byterun.h index 6ab4425fc7..6e28693963 100644 --- a/ext/ByteLoader/byterun.h +++ b/ext/ByteLoader/byterun.h @@ -19,6 +19,7 @@ struct byteloader_state { SV *bs_sv; void **bs_obj_list; int bs_obj_list_fill; + int bs_ix; XPV bs_pv; int bs_iv_overflows; }; @@ -35,146 +36,151 @@ enum { INSN_STOP, /* 4 */ INSN_STPV, /* 5 */ INSN_LDSPECSV, /* 6 */ - INSN_NEWSV, /* 7 */ - INSN_NEWOP, /* 8 */ - INSN_NEWOPN, /* 9 */ + INSN_LDSPECSVX, /* 7 */ + INSN_NEWSV, /* 8 */ + INSN_NEWSVX, /* 9 */ INSN_NOP, /* 10 */ - INSN_NEWPV, /* 11 */ - INSN_PV_CUR, /* 12 */ - INSN_PV_FREE, /* 13 */ - INSN_SV_UPGRADE, /* 14 */ - INSN_SV_REFCNT, /* 15 */ - INSN_SV_REFCNT_ADD, /* 16 */ - INSN_SV_FLAGS, /* 17 */ - INSN_XRV, /* 18 */ - INSN_XPV, /* 19 */ - INSN_XPV_CUR, /* 20 */ - INSN_XPV_LEN, /* 21 */ - INSN_XIV, /* 22 */ - INSN_XNV, /* 23 */ - INSN_XLV_TARGOFF, /* 24 */ - INSN_XLV_TARGLEN, /* 25 */ - INSN_XLV_TARG, /* 26 */ - INSN_XLV_TYPE, /* 27 */ - INSN_XBM_USEFUL, /* 28 */ - INSN_XBM_PREVIOUS, /* 29 */ - INSN_XBM_RARE, /* 30 */ - INSN_XFM_LINES, /* 31 */ - INSN_XIO_LINES, /* 32 */ - INSN_XIO_PAGE, /* 33 */ - INSN_XIO_PAGE_LEN, /* 34 */ + INSN_NEWOP, /* 11 */ + INSN_NEWOPX, /* 12 */ + INSN_NEWOPN, /* 13 */ + INSN_NEWPV, /* 14 */ + INSN_PV_CUR, /* 15 */ + INSN_PV_FREE, /* 16 */ + INSN_SV_UPGRADE, /* 17 */ + INSN_SV_REFCNT, /* 18 */ + INSN_SV_REFCNT_ADD, /* 19 */ + INSN_SV_FLAGS, /* 20 */ + INSN_XRV, /* 21 */ + INSN_XPV, /* 22 */ + INSN_XPV_CUR, /* 23 */ + INSN_XPV_LEN, /* 24 */ + INSN_XIV, /* 25 */ + INSN_XNV, /* 26 */ + INSN_XLV_TARGOFF, /* 27 */ + INSN_XLV_TARGLEN, /* 28 */ + INSN_XLV_TARG, /* 29 */ + INSN_XLV_TYPE, /* 30 */ + INSN_XBM_USEFUL, /* 31 */ + INSN_XBM_PREVIOUS, /* 32 */ + INSN_XBM_RARE, /* 33 */ + INSN_XFM_LINES, /* 34 */ INSN_COMMENT, /* 35 */ - INSN_XIO_LINES_LEFT, /* 36 */ - INSN_XIO_TOP_NAME, /* 37 */ - INSN_XIO_TOP_GV, /* 38 */ - INSN_XIO_FMT_NAME, /* 39 */ - INSN_XIO_FMT_GV, /* 40 */ - INSN_XIO_BOTTOM_NAME, /* 41 */ - INSN_XIO_BOTTOM_GV, /* 42 */ - INSN_XIO_SUBPROCESS, /* 43 */ - INSN_XIO_TYPE, /* 44 */ - INSN_XIO_FLAGS, /* 45 */ - INSN_XCV_XSUBANY, /* 46 */ - INSN_XCV_STASH, /* 47 */ - INSN_XCV_START, /* 48 */ - INSN_XCV_ROOT, /* 49 */ - INSN_XCV_GV, /* 50 */ - INSN_XCV_FILE, /* 51 */ - INSN_XCV_DEPTH, /* 52 */ - INSN_XCV_PADLIST, /* 53 */ - INSN_XCV_OUTSIDE, /* 54 */ - INSN_XCV_OUTSIDE_SEQ, /* 55 */ - INSN_XCV_FLAGS, /* 56 */ - INSN_AV_EXTEND, /* 57 */ - INSN_AV_PUSHX, /* 58 */ - INSN_AV_PUSH, /* 59 */ - INSN_XAV_FILL, /* 60 */ - INSN_XAV_MAX, /* 61 */ - INSN_XAV_FLAGS, /* 62 */ - INSN_XHV_RITER, /* 63 */ - INSN_XHV_NAME, /* 64 */ - INSN_XHV_PMROOT, /* 65 */ - INSN_HV_STORE, /* 66 */ - INSN_SV_MAGIC, /* 67 */ - INSN_MG_OBJ, /* 68 */ - INSN_MG_PRIVATE, /* 69 */ - INSN_MG_FLAGS, /* 70 */ - INSN_MG_NAME, /* 71 */ - INSN_MG_NAMEX, /* 72 */ - INSN_XMG_STASH, /* 73 */ - INSN_GV_FETCHPV, /* 74 */ - INSN_GV_STASHPV, /* 75 */ - INSN_GP_SV, /* 76 */ - INSN_GP_REFCNT, /* 77 */ - INSN_GP_REFCNT_ADD, /* 78 */ - INSN_GP_AV, /* 79 */ - INSN_GP_HV, /* 80 */ - INSN_GP_CV, /* 81 */ - INSN_GP_FILE, /* 82 */ - INSN_GP_IO, /* 83 */ - INSN_GP_FORM, /* 84 */ - INSN_GP_CVGEN, /* 85 */ - INSN_GP_LINE, /* 86 */ - INSN_GP_SHARE, /* 87 */ - INSN_XGV_FLAGS, /* 88 */ - INSN_OP_NEXT, /* 89 */ - INSN_OP_SIBLING, /* 90 */ - INSN_OP_PPADDR, /* 91 */ - INSN_OP_TARG, /* 92 */ - INSN_OP_TYPE, /* 93 */ - INSN_OP_SEQ, /* 94 */ - INSN_OP_FLAGS, /* 95 */ - INSN_OP_PRIVATE, /* 96 */ - INSN_OP_FIRST, /* 97 */ - INSN_OP_LAST, /* 98 */ - INSN_OP_OTHER, /* 99 */ - INSN_OP_PMREPLROOT, /* 100 */ - INSN_OP_PMREPLSTART, /* 101 */ - INSN_OP_PMNEXT, /* 102 */ - INSN_OP_PMSTASHPV, /* 103 */ - INSN_OP_PMREPLROOTPO, /* 104 */ - INSN_OP_PMSTASH, /* 105 */ - INSN_OP_PMREPLROOTGV, /* 106 */ - INSN_PREGCOMP, /* 107 */ - INSN_OP_PMFLAGS, /* 108 */ - INSN_OP_PMPERMFLAGS, /* 109 */ - INSN_OP_PMDYNFLAGS, /* 110 */ - INSN_OP_SV, /* 111 */ - INSN_OP_PADIX, /* 112 */ - INSN_OP_PV, /* 113 */ - INSN_OP_PV_TR, /* 114 */ - INSN_OP_REDOOP, /* 115 */ - INSN_OP_NEXTOP, /* 116 */ - INSN_OP_LASTOP, /* 117 */ - INSN_COP_LABEL, /* 118 */ - INSN_COP_STASHPV, /* 119 */ - INSN_COP_FILE, /* 120 */ - INSN_COP_STASH, /* 121 */ - INSN_COP_FILEGV, /* 122 */ - INSN_COP_SEQ, /* 123 */ - INSN_COP_ARYBASE, /* 124 */ - INSN_COP_LINE, /* 125 */ - INSN_COP_IO, /* 126 */ - INSN_COP_WARNINGS, /* 127 */ - INSN_MAIN_START, /* 128 */ - INSN_MAIN_ROOT, /* 129 */ - INSN_MAIN_CV, /* 130 */ - INSN_CURPAD, /* 131 */ - INSN_PUSH_BEGIN, /* 132 */ - INSN_PUSH_INIT, /* 133 */ - INSN_PUSH_END, /* 134 */ - INSN_CURSTASH, /* 135 */ - INSN_DEFSTASH, /* 136 */ - INSN_DATA, /* 137 */ - INSN_INCAV, /* 138 */ - INSN_LOAD_GLOB, /* 139 */ - INSN_REGEX_PADAV, /* 140 */ - INSN_DOWARN, /* 141 */ - INSN_COMPPAD_NAME, /* 142 */ - INSN_XGV_STASH, /* 143 */ - INSN_SIGNAL, /* 144 */ - INSN_FORMFEED, /* 145 */ - MAX_INSN = 145 + INSN_XIO_LINES, /* 36 */ + INSN_XIO_PAGE, /* 37 */ + INSN_XIO_PAGE_LEN, /* 38 */ + INSN_XIO_LINES_LEFT, /* 39 */ + INSN_XIO_TOP_NAME, /* 40 */ + INSN_XIO_TOP_GV, /* 41 */ + INSN_XIO_FMT_NAME, /* 42 */ + INSN_XIO_FMT_GV, /* 43 */ + INSN_XIO_BOTTOM_NAME, /* 44 */ + INSN_XIO_BOTTOM_GV, /* 45 */ + INSN_XIO_SUBPROCESS, /* 46 */ + INSN_XIO_TYPE, /* 47 */ + INSN_XIO_FLAGS, /* 48 */ + INSN_XCV_XSUBANY, /* 49 */ + INSN_XCV_STASH, /* 50 */ + INSN_XCV_START, /* 51 */ + INSN_XCV_ROOT, /* 52 */ + INSN_XCV_GV, /* 53 */ + INSN_XCV_FILE, /* 54 */ + INSN_XCV_DEPTH, /* 55 */ + INSN_XCV_PADLIST, /* 56 */ + INSN_XCV_OUTSIDE, /* 57 */ + INSN_XCV_OUTSIDE_SEQ, /* 58 */ + INSN_XCV_FLAGS, /* 59 */ + INSN_AV_EXTEND, /* 60 */ + INSN_AV_PUSHX, /* 61 */ + INSN_AV_PUSH, /* 62 */ + INSN_XAV_FILL, /* 63 */ + INSN_XAV_MAX, /* 64 */ + INSN_XAV_FLAGS, /* 65 */ + INSN_XHV_RITER, /* 66 */ + INSN_XHV_NAME, /* 67 */ + INSN_XHV_PMROOT, /* 68 */ + INSN_HV_STORE, /* 69 */ + INSN_SV_MAGIC, /* 70 */ + INSN_MG_OBJ, /* 71 */ + INSN_MG_PRIVATE, /* 72 */ + INSN_MG_FLAGS, /* 73 */ + INSN_MG_NAME, /* 74 */ + INSN_MG_NAMEX, /* 75 */ + INSN_XMG_STASH, /* 76 */ + INSN_GV_FETCHPV, /* 77 */ + INSN_GV_FETCHPVX, /* 78 */ + INSN_GV_STASHPV, /* 79 */ + INSN_GV_STASHPVX, /* 80 */ + INSN_GP_SV, /* 81 */ + INSN_GP_REFCNT, /* 82 */ + INSN_GP_REFCNT_ADD, /* 83 */ + INSN_GP_AV, /* 84 */ + INSN_GP_HV, /* 85 */ + INSN_GP_CV, /* 86 */ + INSN_GP_FILE, /* 87 */ + INSN_GP_IO, /* 88 */ + INSN_GP_FORM, /* 89 */ + INSN_GP_CVGEN, /* 90 */ + INSN_GP_LINE, /* 91 */ + INSN_GP_SHARE, /* 92 */ + INSN_XGV_FLAGS, /* 93 */ + INSN_OP_NEXT, /* 94 */ + INSN_OP_SIBLING, /* 95 */ + INSN_OP_PPADDR, /* 96 */ + INSN_OP_TARG, /* 97 */ + INSN_OP_TYPE, /* 98 */ + INSN_OP_SEQ, /* 99 */ + INSN_OP_FLAGS, /* 100 */ + INSN_OP_PRIVATE, /* 101 */ + INSN_OP_FIRST, /* 102 */ + INSN_OP_LAST, /* 103 */ + INSN_OP_OTHER, /* 104 */ + INSN_OP_PMREPLROOT, /* 105 */ + INSN_OP_PMREPLSTART, /* 106 */ + INSN_OP_PMNEXT, /* 107 */ + INSN_OP_PMSTASHPV, /* 108 */ + INSN_OP_PMREPLROOTPO, /* 109 */ + INSN_OP_PMSTASH, /* 110 */ + INSN_OP_PMREPLROOTGV, /* 111 */ + INSN_PREGCOMP, /* 112 */ + INSN_OP_PMFLAGS, /* 113 */ + INSN_OP_PMPERMFLAGS, /* 114 */ + INSN_OP_PMDYNFLAGS, /* 115 */ + INSN_OP_SV, /* 116 */ + INSN_OP_PADIX, /* 117 */ + INSN_OP_PV, /* 118 */ + INSN_OP_PV_TR, /* 119 */ + INSN_OP_REDOOP, /* 120 */ + INSN_OP_NEXTOP, /* 121 */ + INSN_OP_LASTOP, /* 122 */ + INSN_COP_LABEL, /* 123 */ + INSN_COP_STASHPV, /* 124 */ + INSN_COP_FILE, /* 125 */ + INSN_COP_STASH, /* 126 */ + INSN_COP_FILEGV, /* 127 */ + INSN_COP_SEQ, /* 128 */ + INSN_COP_ARYBASE, /* 129 */ + INSN_COP_LINE, /* 130 */ + INSN_COP_IO, /* 131 */ + INSN_COP_WARNINGS, /* 132 */ + INSN_MAIN_START, /* 133 */ + INSN_MAIN_ROOT, /* 134 */ + INSN_MAIN_CV, /* 135 */ + INSN_CURPAD, /* 136 */ + INSN_PUSH_BEGIN, /* 137 */ + INSN_PUSH_INIT, /* 138 */ + INSN_PUSH_END, /* 139 */ + INSN_CURSTASH, /* 140 */ + INSN_DEFSTASH, /* 141 */ + INSN_DATA, /* 142 */ + INSN_INCAV, /* 143 */ + INSN_LOAD_GLOB, /* 144 */ + INSN_REGEX_PADAV, /* 145 */ + INSN_DOWARN, /* 146 */ + INSN_COMPPAD_NAME, /* 147 */ + INSN_XGV_STASH, /* 148 */ + INSN_SIGNAL, /* 149 */ + INSN_FORMFEED, /* 150 */ + MAX_INSN = 150 }; enum { |