2 * Copyright (c) 1996, 1997 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 */
27 while ((insn = FGETC()) != EOF) {
29 case INSN_COMMENT: /* 35 */
36 case INSN_NOP: /* 10 */
40 case INSN_RET: /* 0 */
45 case INSN_LDSV: /* 1 */
52 case INSN_LDOP: /* 2 */
59 case INSN_STSV: /* 3 */
63 BSET_OBJ_STORE(sv, arg);
66 case INSN_STOP: /* 4 */
70 BSET_OBJ_STORE(op, arg);
73 case INSN_LDSPECSV: /* 5 */
77 BSET_ldspecsv(sv, arg);
80 case INSN_NEWSV: /* 6 */
87 case INSN_NEWOP: /* 7 */
94 case INSN_NEWOPN: /* 8 */
101 case INSN_NEWPV: /* 9 */
107 case INSN_PV_CUR: /* 11 */
114 case INSN_PV_FREE: /* 12 */
119 case INSN_SV_UPGRADE: /* 13 */
123 BSET_sv_upgrade(sv, arg);
126 case INSN_SV_REFCNT: /* 14 */
133 case INSN_SV_REFCNT_ADD: /* 15 */
137 BSET_sv_refcnt_add(SvREFCNT(sv), arg);
140 case INSN_SV_FLAGS: /* 16 */
147 case INSN_XRV: /* 17 */
154 case INSN_XPV: /* 18 */
159 case INSN_XIV32: /* 19 */
166 case INSN_XIV64: /* 20 */
173 case INSN_XNV: /* 21 */
180 case INSN_XLV_TARGOFF: /* 22 */
187 case INSN_XLV_TARGLEN: /* 23 */
194 case INSN_XLV_TARG: /* 24 */
201 case INSN_XLV_TYPE: /* 25 */
208 case INSN_XBM_USEFUL: /* 26 */
215 case INSN_XBM_PREVIOUS: /* 27 */
219 BmPREVIOUS(sv) = arg;
222 case INSN_XBM_RARE: /* 28 */
229 case INSN_XFM_LINES: /* 29 */
236 case INSN_XIO_LINES: /* 30 */
243 case INSN_XIO_PAGE: /* 31 */
250 case INSN_XIO_PAGE_LEN: /* 32 */
254 IoPAGE_LEN(sv) = arg;
257 case INSN_XIO_LINES_LEFT: /* 33 */
261 IoLINES_LEFT(sv) = arg;
264 case INSN_XIO_TOP_NAME: /* 34 */
267 BGET_pvcontents(arg);
268 IoTOP_NAME(sv) = arg;
271 case INSN_XIO_TOP_GV: /* 36 */
275 *(SV**)&IoTOP_GV(sv) = arg;
278 case INSN_XIO_FMT_NAME: /* 37 */
281 BGET_pvcontents(arg);
282 IoFMT_NAME(sv) = arg;
285 case INSN_XIO_FMT_GV: /* 38 */
289 *(SV**)&IoFMT_GV(sv) = arg;
292 case INSN_XIO_BOTTOM_NAME: /* 39 */
295 BGET_pvcontents(arg);
296 IoBOTTOM_NAME(sv) = arg;
299 case INSN_XIO_BOTTOM_GV: /* 40 */
303 *(SV**)&IoBOTTOM_GV(sv) = arg;
306 case INSN_XIO_SUBPROCESS: /* 41 */
310 IoSUBPROCESS(sv) = arg;
313 case INSN_XIO_TYPE: /* 42 */
320 case INSN_XIO_FLAGS: /* 43 */
327 case INSN_XCV_STASH: /* 44 */
331 *(SV**)&CvSTASH(sv) = arg;
334 case INSN_XCV_START: /* 45 */
341 case INSN_XCV_ROOT: /* 46 */
348 case INSN_XCV_GV: /* 47 */
352 *(SV**)&CvGV(sv) = arg;
355 case INSN_XCV_FILEGV: /* 48 */
359 *(SV**)&CvFILEGV(sv) = arg;
362 case INSN_XCV_DEPTH: /* 49 */
369 case INSN_XCV_PADLIST: /* 50 */
373 *(SV**)&CvPADLIST(sv) = arg;
376 case INSN_XCV_OUTSIDE: /* 51 */
380 *(SV**)&CvOUTSIDE(sv) = arg;
383 case INSN_XCV_FLAGS: /* 52 */
390 case INSN_AV_EXTEND: /* 53 */
394 BSET_av_extend(sv, arg);
397 case INSN_AV_PUSH: /* 54 */
401 BSET_av_push(sv, arg);
404 case INSN_XAV_FILL: /* 55 */
411 case INSN_XAV_MAX: /* 56 */
418 case INSN_XAV_FLAGS: /* 57 */
425 case INSN_XHV_RITER: /* 58 */
432 case INSN_XHV_NAME: /* 59 */
435 BGET_pvcontents(arg);
439 case INSN_HV_STORE: /* 60 */
443 BSET_hv_store(sv, arg);
446 case INSN_SV_MAGIC: /* 61 */
450 BSET_sv_magic(sv, arg);
453 case INSN_MG_OBJ: /* 62 */
457 SvMAGIC(sv)->mg_obj = arg;
460 case INSN_MG_PRIVATE: /* 63 */
464 SvMAGIC(sv)->mg_private = arg;
467 case INSN_MG_FLAGS: /* 64 */
471 SvMAGIC(sv)->mg_flags = arg;
474 case INSN_MG_PV: /* 65 */
477 BGET_pvcontents(arg);
478 BSET_mg_pv(SvMAGIC(sv), arg);
481 case INSN_XMG_STASH: /* 66 */
485 *(SV**)&SvSTASH(sv) = arg;
488 case INSN_GV_FETCHPV: /* 67 */
492 BSET_gv_fetchpv(sv, arg);
495 case INSN_GV_STASHPV: /* 68 */
499 BSET_gv_stashpv(sv, arg);
502 case INSN_GP_SV: /* 69 */
509 case INSN_GP_REFCNT: /* 70 */
516 case INSN_GP_REFCNT_ADD: /* 71 */
520 BSET_gp_refcnt_add(GvREFCNT(sv), arg);
523 case INSN_GP_AV: /* 72 */
527 *(SV**)&GvAV(sv) = arg;
530 case INSN_GP_HV: /* 73 */
534 *(SV**)&GvHV(sv) = arg;
537 case INSN_GP_CV: /* 74 */
541 *(SV**)&GvCV(sv) = arg;
544 case INSN_GP_FILEGV: /* 75 */
548 *(SV**)&GvFILEGV(sv) = arg;
551 case INSN_GP_IO: /* 76 */
555 *(SV**)&GvIOp(sv) = arg;
558 case INSN_GP_FORM: /* 77 */
562 *(SV**)&GvFORM(sv) = arg;
565 case INSN_GP_CVGEN: /* 78 */
572 case INSN_GP_LINE: /* 79 */
579 case INSN_GP_SHARE: /* 80 */
583 BSET_gp_share(sv, arg);
586 case INSN_XGV_FLAGS: /* 81 */
593 case INSN_OP_NEXT: /* 82 */
600 case INSN_OP_SIBLING: /* 83 */
604 op->op_sibling = arg;
607 case INSN_OP_PPADDR: /* 84 */
611 BSET_op_ppaddr(op->op_ppaddr, arg);
614 case INSN_OP_TARG: /* 85 */
621 case INSN_OP_TYPE: /* 86 */
625 BSET_op_type(op, arg);
628 case INSN_OP_SEQ: /* 87 */
635 case INSN_OP_FLAGS: /* 88 */
642 case INSN_OP_PRIVATE: /* 89 */
646 op->op_private = arg;
649 case INSN_OP_FIRST: /* 90 */
653 cUNOP->op_first = arg;
656 case INSN_OP_LAST: /* 91 */
660 cBINOP->op_last = arg;
663 case INSN_OP_OTHER: /* 92 */
667 cLOGOP->op_other = arg;
670 case INSN_OP_TRUE: /* 93 */
674 cCONDOP->op_true = arg;
677 case INSN_OP_FALSE: /* 94 */
681 cCONDOP->op_false = arg;
684 case INSN_OP_CHILDREN: /* 95 */
688 cLISTOP->op_children = arg;
691 case INSN_OP_PMREPLROOT: /* 96 */
695 cPMOP->op_pmreplroot = arg;
698 case INSN_OP_PMREPLROOTGV: /* 97 */
702 *(SV**)&cPMOP->op_pmreplroot = arg;
705 case INSN_OP_PMREPLSTART: /* 98 */
709 cPMOP->op_pmreplstart = arg;
712 case INSN_OP_PMNEXT: /* 99 */
716 *(OP**)&cPMOP->op_pmnext = arg;
719 case INSN_PREGCOMP: /* 100 */
722 BGET_pvcontents(arg);
723 BSET_pregcomp(op, arg);
726 case INSN_OP_PMFLAGS: /* 101 */
730 cPMOP->op_pmflags = arg;
733 case INSN_OP_PMPERMFLAGS: /* 102 */
737 cPMOP->op_pmpermflags = arg;
740 case INSN_OP_SV: /* 103 */
747 case INSN_OP_GV: /* 104 */
751 *(SV**)&cGVOP->op_gv = arg;
754 case INSN_OP_PV: /* 105 */
757 BGET_pvcontents(arg);
761 case INSN_OP_PV_TR: /* 106 */
764 BGET_op_tr_array(arg);
768 case INSN_OP_REDOOP: /* 107 */
772 cLOOP->op_redoop = arg;
775 case INSN_OP_NEXTOP: /* 108 */
779 cLOOP->op_nextop = arg;
782 case INSN_OP_LASTOP: /* 109 */
786 cLOOP->op_lastop = arg;
789 case INSN_COP_LABEL: /* 110 */
792 BGET_pvcontents(arg);
793 cCOP->cop_label = arg;
796 case INSN_COP_STASH: /* 111 */
800 *(SV**)&cCOP->cop_stash = arg;
803 case INSN_COP_FILEGV: /* 112 */
807 *(SV**)&cCOP->cop_filegv = arg;
810 case INSN_COP_SEQ: /* 113 */
817 case INSN_COP_ARYBASE: /* 114 */
821 cCOP->cop_arybase = arg;
824 case INSN_COP_LINE: /* 115 */
828 cCOP->cop_line = arg;
831 case INSN_MAIN_START: /* 116 */
838 case INSN_MAIN_ROOT: /* 117 */
845 case INSN_CURPAD: /* 118 */
849 BSET_curpad(curpad, arg);
853 croak("Illegal bytecode instruction %d\n", insn);