2 * Copyright (c) 1996-1998 Malcolm Beattie
4 * You may distribute under the terms of either the GNU General Public
5 * License or the Artistic License, as specified in the README file.
9 * This file is autogenerated from bytecode.pl. Changes made here will be lost.
17 #ifdef INDIRECT_BGET_MACROS
18 void byterun(struct bytestream bs)
20 void byterun(FILE *fp)
21 #endif /* INDIRECT_BGET_MACROS */
25 while ((insn = FGETC()) != EOF) {
27 case INSN_COMMENT: /* 35 */
34 case INSN_NOP: /* 10 */
38 case INSN_RET: /* 0 */
43 case INSN_LDSV: /* 1 */
50 case INSN_LDOP: /* 2 */
57 case INSN_STSV: /* 3 */
61 BSET_OBJ_STORE(sv, arg);
64 case INSN_STOP: /* 4 */
68 BSET_OBJ_STORE(op, arg);
71 case INSN_LDSPECSV: /* 5 */
75 BSET_ldspecsv(sv, arg);
78 case INSN_NEWSV: /* 6 */
85 case INSN_NEWOP: /* 7 */
92 case INSN_NEWOPN: /* 8 */
99 case INSN_NEWPV: /* 9 */
105 case INSN_PV_CUR: /* 11 */
112 case INSN_PV_FREE: /* 12 */
117 case INSN_SV_UPGRADE: /* 13 */
121 BSET_sv_upgrade(sv, arg);
124 case INSN_SV_REFCNT: /* 14 */
131 case INSN_SV_REFCNT_ADD: /* 15 */
135 BSET_sv_refcnt_add(SvREFCNT(sv), arg);
138 case INSN_SV_FLAGS: /* 16 */
145 case INSN_XRV: /* 17 */
152 case INSN_XPV: /* 18 */
157 case INSN_XIV32: /* 19 */
164 case INSN_XIV64: /* 20 */
171 case INSN_XNV: /* 21 */
178 case INSN_XLV_TARGOFF: /* 22 */
185 case INSN_XLV_TARGLEN: /* 23 */
192 case INSN_XLV_TARG: /* 24 */
199 case INSN_XLV_TYPE: /* 25 */
206 case INSN_XBM_USEFUL: /* 26 */
213 case INSN_XBM_PREVIOUS: /* 27 */
217 BmPREVIOUS(sv) = arg;
220 case INSN_XBM_RARE: /* 28 */
227 case INSN_XFM_LINES: /* 29 */
234 case INSN_XIO_LINES: /* 30 */
241 case INSN_XIO_PAGE: /* 31 */
248 case INSN_XIO_PAGE_LEN: /* 32 */
252 IoPAGE_LEN(sv) = arg;
255 case INSN_XIO_LINES_LEFT: /* 33 */
259 IoLINES_LEFT(sv) = arg;
262 case INSN_XIO_TOP_NAME: /* 34 */
265 BGET_pvcontents(arg);
266 IoTOP_NAME(sv) = arg;
269 case INSN_XIO_TOP_GV: /* 36 */
273 *(SV**)&IoTOP_GV(sv) = arg;
276 case INSN_XIO_FMT_NAME: /* 37 */
279 BGET_pvcontents(arg);
280 IoFMT_NAME(sv) = arg;
283 case INSN_XIO_FMT_GV: /* 38 */
287 *(SV**)&IoFMT_GV(sv) = arg;
290 case INSN_XIO_BOTTOM_NAME: /* 39 */
293 BGET_pvcontents(arg);
294 IoBOTTOM_NAME(sv) = arg;
297 case INSN_XIO_BOTTOM_GV: /* 40 */
301 *(SV**)&IoBOTTOM_GV(sv) = arg;
304 case INSN_XIO_SUBPROCESS: /* 41 */
308 IoSUBPROCESS(sv) = arg;
311 case INSN_XIO_TYPE: /* 42 */
318 case INSN_XIO_FLAGS: /* 43 */
325 case INSN_XCV_STASH: /* 44 */
329 *(SV**)&CvSTASH(sv) = arg;
332 case INSN_XCV_START: /* 45 */
339 case INSN_XCV_ROOT: /* 46 */
346 case INSN_XCV_GV: /* 47 */
350 *(SV**)&CvGV(sv) = arg;
353 case INSN_XCV_FILEGV: /* 48 */
357 *(SV**)&CvFILEGV(sv) = arg;
360 case INSN_XCV_DEPTH: /* 49 */
367 case INSN_XCV_PADLIST: /* 50 */
371 *(SV**)&CvPADLIST(sv) = arg;
374 case INSN_XCV_OUTSIDE: /* 51 */
378 *(SV**)&CvOUTSIDE(sv) = arg;
381 case INSN_XCV_FLAGS: /* 52 */
388 case INSN_AV_EXTEND: /* 53 */
392 BSET_av_extend(sv, arg);
395 case INSN_AV_PUSH: /* 54 */
399 BSET_av_push(sv, arg);
402 case INSN_XAV_FILL: /* 55 */
409 case INSN_XAV_MAX: /* 56 */
416 case INSN_XAV_FLAGS: /* 57 */
423 case INSN_XHV_RITER: /* 58 */
430 case INSN_XHV_NAME: /* 59 */
433 BGET_pvcontents(arg);
437 case INSN_HV_STORE: /* 60 */
441 BSET_hv_store(sv, arg);
444 case INSN_SV_MAGIC: /* 61 */
448 BSET_sv_magic(sv, arg);
451 case INSN_MG_OBJ: /* 62 */
455 SvMAGIC(sv)->mg_obj = arg;
458 case INSN_MG_PRIVATE: /* 63 */
462 SvMAGIC(sv)->mg_private = arg;
465 case INSN_MG_FLAGS: /* 64 */
469 SvMAGIC(sv)->mg_flags = arg;
472 case INSN_MG_PV: /* 65 */
475 BGET_pvcontents(arg);
476 BSET_mg_pv(SvMAGIC(sv), arg);
479 case INSN_XMG_STASH: /* 66 */
483 *(SV**)&SvSTASH(sv) = arg;
486 case INSN_GV_FETCHPV: /* 67 */
490 BSET_gv_fetchpv(sv, arg);
493 case INSN_GV_STASHPV: /* 68 */
497 BSET_gv_stashpv(sv, arg);
500 case INSN_GP_SV: /* 69 */
507 case INSN_GP_REFCNT: /* 70 */
514 case INSN_GP_REFCNT_ADD: /* 71 */
518 BSET_gp_refcnt_add(GvREFCNT(sv), arg);
521 case INSN_GP_AV: /* 72 */
525 *(SV**)&GvAV(sv) = arg;
528 case INSN_GP_HV: /* 73 */
532 *(SV**)&GvHV(sv) = arg;
535 case INSN_GP_CV: /* 74 */
539 *(SV**)&GvCV(sv) = arg;
542 case INSN_GP_FILEGV: /* 75 */
546 *(SV**)&GvFILEGV(sv) = arg;
549 case INSN_GP_IO: /* 76 */
553 *(SV**)&GvIOp(sv) = arg;
556 case INSN_GP_FORM: /* 77 */
560 *(SV**)&GvFORM(sv) = arg;
563 case INSN_GP_CVGEN: /* 78 */
570 case INSN_GP_LINE: /* 79 */
577 case INSN_GP_SHARE: /* 80 */
581 BSET_gp_share(sv, arg);
584 case INSN_XGV_FLAGS: /* 81 */
591 case INSN_OP_NEXT: /* 82 */
598 case INSN_OP_SIBLING: /* 83 */
602 op->op_sibling = arg;
605 case INSN_OP_PPADDR: /* 84 */
609 BSET_op_ppaddr(op->op_ppaddr, arg);
612 case INSN_OP_TARG: /* 85 */
619 case INSN_OP_TYPE: /* 86 */
623 BSET_op_type(op, arg);
626 case INSN_OP_SEQ: /* 87 */
633 case INSN_OP_FLAGS: /* 88 */
640 case INSN_OP_PRIVATE: /* 89 */
644 op->op_private = arg;
647 case INSN_OP_FIRST: /* 90 */
651 cUNOP->op_first = arg;
654 case INSN_OP_LAST: /* 91 */
658 cBINOP->op_last = arg;
661 case INSN_OP_OTHER: /* 92 */
665 cLOGOP->op_other = arg;
668 case INSN_OP_TRUE: /* 93 */
672 cCONDOP->op_true = arg;
675 case INSN_OP_FALSE: /* 94 */
679 cCONDOP->op_false = arg;
682 case INSN_OP_CHILDREN: /* 95 */
686 cLISTOP->op_children = arg;
689 case INSN_OP_PMREPLROOT: /* 96 */
693 cPMOP->op_pmreplroot = arg;
696 case INSN_OP_PMREPLROOTGV: /* 97 */
700 *(SV**)&cPMOP->op_pmreplroot = arg;
703 case INSN_OP_PMREPLSTART: /* 98 */
707 cPMOP->op_pmreplstart = arg;
710 case INSN_OP_PMNEXT: /* 99 */
714 *(OP**)&cPMOP->op_pmnext = arg;
717 case INSN_PREGCOMP: /* 100 */
720 BGET_pvcontents(arg);
721 BSET_pregcomp(op, arg);
724 case INSN_OP_PMFLAGS: /* 101 */
728 cPMOP->op_pmflags = arg;
731 case INSN_OP_PMPERMFLAGS: /* 102 */
735 cPMOP->op_pmpermflags = arg;
738 case INSN_OP_SV: /* 103 */
745 case INSN_OP_GV: /* 104 */
749 *(SV**)&cGVOP->op_gv = arg;
752 case INSN_OP_PV: /* 105 */
755 BGET_pvcontents(arg);
759 case INSN_OP_PV_TR: /* 106 */
762 BGET_op_tr_array(arg);
766 case INSN_OP_REDOOP: /* 107 */
770 cLOOP->op_redoop = arg;
773 case INSN_OP_NEXTOP: /* 108 */
777 cLOOP->op_nextop = arg;
780 case INSN_OP_LASTOP: /* 109 */
784 cLOOP->op_lastop = arg;
787 case INSN_COP_LABEL: /* 110 */
790 BGET_pvcontents(arg);
791 cCOP->cop_label = arg;
794 case INSN_COP_STASH: /* 111 */
798 *(SV**)&cCOP->cop_stash = arg;
801 case INSN_COP_FILEGV: /* 112 */
805 *(SV**)&cCOP->cop_filegv = arg;
808 case INSN_COP_SEQ: /* 113 */
815 case INSN_COP_ARYBASE: /* 114 */
819 cCOP->cop_arybase = arg;
822 case INSN_COP_LINE: /* 115 */
826 cCOP->cop_line = arg;
829 case INSN_MAIN_START: /* 116 */
836 case INSN_MAIN_ROOT: /* 117 */
843 case INSN_CURPAD: /* 118 */
847 BSET_curpad(curpad, arg);
851 croak("Illegal bytecode instruction %d\n", insn);