2 * Copyright (c) 1996 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
23 #endif /* INDIRECT_BGET_MACROS */
26 while ((insn = FGETC()) != EOF) {
28 case INSN_COMMENT: /* 35 */
35 case INSN_NOP: /* 10 */
39 case INSN_RET: /* 0 */
44 case INSN_LDSV: /* 1 */
51 case INSN_LDOP: /* 2 */
58 case INSN_STSV: /* 3 */
62 BSET_OBJ_STORE(sv, arg);
65 case INSN_STOP: /* 4 */
69 BSET_OBJ_STORE(op, arg);
72 case INSN_LDSPECSV: /* 5 */
76 BSET_ldspecsv(sv, arg);
79 case INSN_NEWSV: /* 6 */
86 case INSN_NEWOP: /* 7 */
93 case INSN_NEWOPN: /* 8 */
100 case INSN_NEWPV: /* 9 */
106 case INSN_PV_CUR: /* 11 */
113 case INSN_PV_FREE: /* 12 */
118 case INSN_SV_UPGRADE: /* 13 */
122 BSET_sv_upgrade(sv, arg);
125 case INSN_SV_REFCNT: /* 14 */
132 case INSN_SV_REFCNT_ADD: /* 15 */
136 BSET_sv_refcnt_add(SvREFCNT(sv), arg);
139 case INSN_SV_FLAGS: /* 16 */
146 case INSN_XRV: /* 17 */
153 case INSN_XPV: /* 18 */
158 case INSN_XIV32: /* 19 */
165 case INSN_XIV64: /* 20 */
172 case INSN_XNV: /* 21 */
179 case INSN_XLV_TARGOFF: /* 22 */
186 case INSN_XLV_TARGLEN: /* 23 */
193 case INSN_XLV_TARG: /* 24 */
200 case INSN_XLV_TYPE: /* 25 */
207 case INSN_XBM_USEFUL: /* 26 */
214 case INSN_XBM_PREVIOUS: /* 27 */
218 BmPREVIOUS(sv) = arg;
221 case INSN_XBM_RARE: /* 28 */
228 case INSN_XFM_LINES: /* 29 */
235 case INSN_XIO_LINES: /* 30 */
242 case INSN_XIO_PAGE: /* 31 */
249 case INSN_XIO_PAGE_LEN: /* 32 */
253 IoPAGE_LEN(sv) = arg;
256 case INSN_XIO_LINES_LEFT: /* 33 */
260 IoLINES_LEFT(sv) = arg;
263 case INSN_XIO_TOP_NAME: /* 34 */
266 BGET_pvcontents(arg);
267 IoTOP_NAME(sv) = arg;
270 case INSN_XIO_TOP_GV: /* 36 */
274 *(SV**)&IoTOP_GV(sv) = arg;
277 case INSN_XIO_FMT_NAME: /* 37 */
280 BGET_pvcontents(arg);
281 IoFMT_NAME(sv) = arg;
284 case INSN_XIO_FMT_GV: /* 38 */
288 *(SV**)&IoFMT_GV(sv) = arg;
291 case INSN_XIO_BOTTOM_NAME: /* 39 */
294 BGET_pvcontents(arg);
295 IoBOTTOM_NAME(sv) = arg;
298 case INSN_XIO_BOTTOM_GV: /* 40 */
302 *(SV**)&IoBOTTOM_GV(sv) = arg;
305 case INSN_XIO_SUBPROCESS: /* 41 */
309 IoSUBPROCESS(sv) = arg;
312 case INSN_XIO_TYPE: /* 42 */
319 case INSN_XIO_FLAGS: /* 43 */
326 case INSN_XCV_STASH: /* 44 */
330 *(SV**)&CvSTASH(sv) = arg;
333 case INSN_XCV_START: /* 45 */
340 case INSN_XCV_ROOT: /* 46 */
347 case INSN_XCV_GV: /* 47 */
351 *(SV**)&CvGV(sv) = arg;
354 case INSN_XCV_FILEGV: /* 48 */
358 *(SV**)&CvFILEGV(sv) = arg;
361 case INSN_XCV_DEPTH: /* 49 */
368 case INSN_XCV_PADLIST: /* 50 */
372 *(SV**)&CvPADLIST(sv) = arg;
375 case INSN_XCV_OUTSIDE: /* 51 */
379 *(SV**)&CvOUTSIDE(sv) = arg;
382 case INSN_XCV_FLAGS: /* 52 */
389 case INSN_AV_EXTEND: /* 53 */
393 BSET_av_extend(sv, arg);
396 case INSN_AV_PUSH: /* 54 */
400 BSET_av_push(sv, arg);
403 case INSN_XAV_FILL: /* 55 */
410 case INSN_XAV_MAX: /* 56 */
417 case INSN_XAV_FLAGS: /* 57 */
424 case INSN_XHV_RITER: /* 58 */
431 case INSN_XHV_NAME: /* 59 */
434 BGET_pvcontents(arg);
438 case INSN_HV_STORE: /* 60 */
442 BSET_hv_store(sv, arg);
445 case INSN_SV_MAGIC: /* 61 */
449 BSET_sv_magic(sv, arg);
452 case INSN_MG_OBJ: /* 62 */
456 SvMAGIC(sv)->mg_obj = arg;
459 case INSN_MG_PRIVATE: /* 63 */
463 SvMAGIC(sv)->mg_private = arg;
466 case INSN_MG_FLAGS: /* 64 */
470 SvMAGIC(sv)->mg_flags = arg;
473 case INSN_MG_PV: /* 65 */
476 BGET_pvcontents(arg);
477 BSET_mg_pv(SvMAGIC(sv), arg);
480 case INSN_XMG_STASH: /* 66 */
484 *(SV**)&SvSTASH(sv) = arg;
487 case INSN_GV_FETCHPV: /* 67 */
491 BSET_gv_fetchpv(sv, arg);
494 case INSN_GV_STASHPV: /* 68 */
498 BSET_gv_stashpv(sv, arg);
501 case INSN_GP_SV: /* 69 */
508 case INSN_GP_REFCNT: /* 70 */
515 case INSN_GP_REFCNT_ADD: /* 71 */
519 BSET_gp_refcnt_add(GvREFCNT(sv), arg);
522 case INSN_GP_AV: /* 72 */
526 *(SV**)&GvAV(sv) = arg;
529 case INSN_GP_HV: /* 73 */
533 *(SV**)&GvHV(sv) = arg;
536 case INSN_GP_CV: /* 74 */
540 *(SV**)&GvCV(sv) = arg;
543 case INSN_GP_FILEGV: /* 75 */
547 *(SV**)&GvFILEGV(sv) = arg;
550 case INSN_GP_IO: /* 76 */
554 *(SV**)&GvIOp(sv) = arg;
557 case INSN_GP_FORM: /* 77 */
561 *(SV**)&GvFORM(sv) = arg;
564 case INSN_GP_CVGEN: /* 78 */
571 case INSN_GP_LINE: /* 79 */
578 case INSN_GP_SHARE: /* 80 */
582 BSET_gp_share(sv, arg);
585 case INSN_XGV_FLAGS: /* 81 */
592 case INSN_OP_NEXT: /* 82 */
599 case INSN_OP_SIBLING: /* 83 */
603 op->op_sibling = arg;
606 case INSN_OP_PPADDR: /* 84 */
610 BSET_op_ppaddr(op->op_ppaddr, arg);
613 case INSN_OP_TARG: /* 85 */
620 case INSN_OP_TYPE: /* 86 */
624 BSET_op_type(op, arg);
627 case INSN_OP_SEQ: /* 87 */
634 case INSN_OP_FLAGS: /* 88 */
641 case INSN_OP_PRIVATE: /* 89 */
645 op->op_private = arg;
648 case INSN_OP_FIRST: /* 90 */
652 cUNOP->op_first = arg;
655 case INSN_OP_LAST: /* 91 */
659 cBINOP->op_last = arg;
662 case INSN_OP_OTHER: /* 92 */
666 cLOGOP->op_other = arg;
669 case INSN_OP_TRUE: /* 93 */
673 cCONDOP->op_true = arg;
676 case INSN_OP_FALSE: /* 94 */
680 cCONDOP->op_false = arg;
683 case INSN_OP_CHILDREN: /* 95 */
687 cLISTOP->op_children = arg;
690 case INSN_OP_PMREPLROOT: /* 96 */
694 cPMOP->op_pmreplroot = arg;
697 case INSN_OP_PMREPLROOTGV: /* 97 */
701 *(SV**)&cPMOP->op_pmreplroot = arg;
704 case INSN_OP_PMREPLSTART: /* 98 */
708 cPMOP->op_pmreplstart = arg;
711 case INSN_OP_PMNEXT: /* 99 */
715 *(OP**)&cPMOP->op_pmnext = arg;
718 case INSN_PREGCOMP: /* 100 */
721 BGET_pvcontents(arg);
722 BSET_pregcomp(op, arg);
725 case INSN_OP_PMSHORT: /* 101 */
729 cPMOP->op_pmshort = arg;
732 case INSN_OP_PMFLAGS: /* 102 */
736 cPMOP->op_pmflags = arg;
739 case INSN_OP_PMPERMFLAGS: /* 103 */
743 cPMOP->op_pmpermflags = arg;
746 case INSN_OP_PMSLEN: /* 104 */
750 cPMOP->op_pmslen = arg;
753 case INSN_OP_SV: /* 105 */
760 case INSN_OP_GV: /* 106 */
764 *(SV**)&cGVOP->op_gv = arg;
767 case INSN_OP_PV: /* 107 */
770 BGET_pvcontents(arg);
774 case INSN_OP_PV_TR: /* 108 */
777 BGET_op_tr_array(arg);
781 case INSN_OP_REDOOP: /* 109 */
785 cLOOP->op_redoop = arg;
788 case INSN_OP_NEXTOP: /* 110 */
792 cLOOP->op_nextop = arg;
795 case INSN_OP_LASTOP: /* 111 */
799 cLOOP->op_lastop = arg;
802 case INSN_COP_LABEL: /* 112 */
805 BGET_pvcontents(arg);
806 cCOP->cop_label = arg;
809 case INSN_COP_STASH: /* 113 */
813 *(SV**)&cCOP->cop_stash = arg;
816 case INSN_COP_FILEGV: /* 114 */
820 *(SV**)&cCOP->cop_filegv = arg;
823 case INSN_COP_SEQ: /* 115 */
830 case INSN_COP_ARYBASE: /* 116 */
834 cCOP->cop_arybase = arg;
837 case INSN_COP_LINE: /* 117 */
841 cCOP->cop_line = arg;
844 case INSN_MAIN_START: /* 118 */
851 case INSN_MAIN_ROOT: /* 119 */
858 case INSN_CURPAD: /* 120 */
862 BSET_curpad(curpad, arg);
866 croak("Illegal bytecode instruction %d\n", insn);