This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[MERGE] t/TEST -deparse fixups
[perl5.git] / lib / B / Op_private.pm
CommitLineData
f3574cc6
DM
1# -*- buffer-read-only: t -*-
2#
3# lib/B/Op_private.pm
4#
5# Copyright (C) 2014 by Larry Wall and others
6#
7# You may distribute under the terms of either the GNU General Public
8# License or the Artistic License, as specified in the README file.
9#
10# !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
00fdc80f
FC
11# This file is built by regen/opcode.pl from data in
12# regen/op_private and pod embedded in regen/opcode.pl.
f3574cc6
DM
13# Any changes made here will be lost!
14
15=head1 NAME
16
17B::Op_private - OP op_private flag definitions
18
19=head1 SYNOPSIS
20
21 use B::Op_private;
22
23 # flag details for bit 7 of OP_AELEM's op_private:
24 my $name = $B::Op_private::bits{aelem}{7}; # OPpLVAL_INTRO
25 my $value = $B::Op_private::defines{$name}; # 128
26 my $label = $B::Op_private::labels{$name}; # LVINTRO
27
28 # the bit field at bits 5..6 of OP_AELEM's op_private:
29 my $bf = $B::Op_private::bits{aelem}{6};
30 my $mask = $bf->{bitmask}; # etc
31
32=head1 DESCRIPTION
33
dc1230de 34This module provides four global hashes:
f3574cc6
DM
35
36 %B::Op_private::bits
37 %B::Op_private::defines
38 %B::Op_private::labels
dc1230de 39 %B::Op_private::ops_using
f3574cc6
DM
40
41which contain information about the per-op meanings of the bits in the
42op_private field.
43
44=head2 C<%bits>
45
46This is indexed by op name and then bit number (0..7). For single bit flags,
47it returns the name of the define (if any) for that bit:
48
49 $B::Op_private::bits{aelem}{7} eq 'OPpLVAL_INTRO';
50
51For bit fields, it returns a hash ref containing details about the field.
52The same reference will be returned for all bit positions that make
53up the bit field; so for example these both return the same hash ref:
54
55 $bitfield = $B::Op_private::bits{aelem}{5};
56 $bitfield = $B::Op_private::bits{aelem}{6};
57
58The general format of this hash ref is
59
60 {
61 # The bit range and mask; these are always present.
62 bitmin => 5,
63 bitmax => 6,
64 bitmask => 0x60,
65
66 # (The remaining keys are optional)
67
68 # The names of any defines that were requested:
69 mask_def => 'OPpFOO_MASK',
70 baseshift_def => 'OPpFOO_SHIFT',
71 bitcount_def => 'OPpFOO_BITS',
72
73 # If present, Concise etc will display the value with a 'FOO='
cdb679b6
FC
74 # prefix. If it equals '-', then Concise will treat the bit
75 # field as raw bits and not try to interpret it.
f3574cc6
DM
76 label => 'FOO',
77
2febb45a
FC
78 # If present, specifies the names of some defines and the
79 # display labels that are used to assign meaning to particu-
80 # lar integer values within the bit field; e.g. 3 is dis-
81 # played as 'C'.
f3574cc6
DM
82 enum => [ qw(
83 1 OPpFOO_A A
84 2 OPpFOO_B B
85 3 OPpFOO_C C
86 )],
87
88 };
89
90
91=head2 C<%defines>
92
93This gives the value of every C<OPp> define, e.g.
94
95 $B::Op_private::defines{OPpLVAL_INTRO} == 128;
96
97=head2 C<%labels>
98
99This gives the short display label for each define, as used by C<B::Concise>
100and C<perl -Dx>, e.g.
101
102 $B::Op_private::labels{OPpLVAL_INTRO} eq 'LVINTRO';
103
104If the label equals '-', then Concise will treat the bit as a raw bit and
105not try to display it symbolically.
106
dc1230de
FC
107=head2 C<%ops_using>
108
109For each define, this gives a reference to an array of op names that use
110the flag.
111
112 @ops_using_lvintro = @{ $B::Op_private::ops_using{OPp_LVAL_INTRO} };
113
f3574cc6
DM
114=cut
115
116package B::Op_private;
117
118our %bits;
119
99275276 120
93cd6fca 121our $VERSION = "5.027007";
99275276 122
f3574cc6 123$bits{$_}{3} = 'OPpENTERSUB_AMPER' for qw(entersub rv2cv);
9e209402 124$bits{$_}{6} = 'OPpENTERSUB_DB' for qw(entersub rv2cv);
f3574cc6
DM
125$bits{$_}{2} = 'OPpENTERSUB_HASTARG' for qw(entersub rv2cv);
126$bits{$_}{6} = 'OPpFLIP_LINENUM' for qw(flip flop);
127$bits{$_}{1} = 'OPpFT_ACCESS' for qw(fteexec fteread ftewrite ftrexec ftrread ftrwrite);
128$bits{$_}{4} = 'OPpFT_AFTER_t' for qw(ftatime ftbinary ftblk ftchr ftctime ftdir fteexec fteowned fteread ftewrite ftfile ftis ftlink ftmtime ftpipe ftrexec ftrowned ftrread ftrwrite ftsgid ftsize ftsock ftsuid ftsvtx fttext fttty ftzero);
129$bits{$_}{2} = 'OPpFT_STACKED' for qw(ftatime ftbinary ftblk ftchr ftctime ftdir fteexec fteowned fteread ftewrite ftfile ftis ftlink ftmtime ftpipe ftrexec ftrowned ftrread ftrwrite ftsgid ftsize ftsock ftsuid ftsvtx fttext fttty ftzero);
130$bits{$_}{3} = 'OPpFT_STACKING' for qw(ftatime ftbinary ftblk ftchr ftctime ftdir fteexec fteowned fteread ftewrite ftfile ftis ftlink ftmtime ftpipe ftrexec ftrowned ftrread ftrwrite ftsgid ftsize ftsock ftsuid ftsvtx fttext fttty ftzero);
fedf30e1 131$bits{$_}{1} = 'OPpHINT_STRICT_REFS' for qw(entersub multideref rv2av rv2cv rv2gv rv2hv rv2sv);
f3574cc6 132$bits{$_}{5} = 'OPpHUSH_VMSISH' for qw(dbstate nextstate);
7e8d786b 133$bits{$_}{6} = 'OPpINDEX_BOOLNEG' for qw(index rindex);
93661e56 134$bits{$_}{1} = 'OPpITER_REVERSED' for qw(enteriter iter);
f3574cc6 135$bits{$_}{7} = 'OPpLVALUE' for qw(leave leaveloop);
fedf30e1 136$bits{$_}{6} = 'OPpLVAL_DEFER' for qw(aelem helem multideref);
e839e6ed 137$bits{$_}{7} = 'OPpLVAL_INTRO' for qw(aelem aslice cond_expr delete enteriter entersub gvsv helem hslice list lvavref lvref lvrefslice multiconcat multideref padav padhv padrange padsv pushmark refassign rv2av rv2gv rv2hv rv2sv split);
6102323a 138$bits{$_}{2} = 'OPpLVREF_ELEM' for qw(lvref refassign);
5a36b2c0 139$bits{$_}{3} = 'OPpLVREF_ITER' for qw(lvref refassign);
4fa080db 140$bits{$_}{3} = 'OPpMAYBE_LVSUB' for qw(aassign aelem akeys aslice av2arylen avhvswitch helem hslice keys kvaslice kvhslice multideref padav padhv pos rv2av rv2gv rv2hv substr values vec);
ba75e9a4 141$bits{$_}{4} = 'OPpMAYBE_TRUEBOOL' for qw(padhv ref rv2hv);
f3574cc6
DM
142$bits{$_}{7} = 'OPpOFFBYONE' for qw(caller runcv wantarray);
143$bits{$_}{5} = 'OPpOPEN_IN_CRLF' for qw(backtick open);
144$bits{$_}{4} = 'OPpOPEN_IN_RAW' for qw(backtick open);
145$bits{$_}{7} = 'OPpOPEN_OUT_CRLF' for qw(backtick open);
146$bits{$_}{6} = 'OPpOPEN_OUT_RAW' for qw(backtick open);
9e209402
FC
147$bits{$_}{6} = 'OPpOUR_INTRO' for qw(enteriter gvsv rv2av rv2hv rv2sv split);
148$bits{$_}{6} = 'OPpPAD_STATE' for qw(lvavref lvref padav padhv padsv pushmark refassign);
f3574cc6
DM
149$bits{$_}{7} = 'OPpPV_IS_UTF8' for qw(dump goto last next redo);
150$bits{$_}{6} = 'OPpREFCOUNTED' for qw(leave leaveeval leavesub leavesublv leavewrite);
f3574cc6 151$bits{$_}{2} = 'OPpSLICEWARNING' for qw(aslice hslice padav padhv rv2av rv2hv);
e839e6ed 152$bits{$_}{4} = 'OPpTARGET_MY' for qw(abs add atan2 chdir chmod chomp chown chr chroot concat cos crypt divide exec exp flock getpgrp getppid getpriority hex i_add i_divide i_modulo i_multiply i_subtract index int kill left_shift length link log mkdir modulo multiconcat multiply nbit_and nbit_or nbit_xor ncomplement oct ord pow push rand rename right_shift rindex rmdir schomp scomplement setpgrp setpriority sin sleep sqrt srand stringify subtract symlink system time unlink unshift utime wait waitpid);
f3574cc6
DM
153$bits{$_}{5} = 'OPpTRANS_COMPLEMENT' for qw(trans transr);
154$bits{$_}{7} = 'OPpTRANS_DELETE' for qw(trans transr);
155$bits{$_}{0} = 'OPpTRANS_FROM_UTF' for qw(trans transr);
156$bits{$_}{6} = 'OPpTRANS_GROWS' for qw(trans transr);
157$bits{$_}{2} = 'OPpTRANS_IDENTICAL' for qw(trans transr);
158$bits{$_}{3} = 'OPpTRANS_SQUASH' for qw(trans transr);
159$bits{$_}{1} = 'OPpTRANS_TO_UTF' for qw(trans transr);
7e8d786b 160$bits{$_}{5} = 'OPpTRUEBOOL' for qw(grepwhile index length padav padhv pos ref rindex rv2av rv2hv subst);
f3574cc6
DM
161
162my @bf = (
163 {
164 label => '-',
165 mask_def => 'OPpARG1_MASK',
166 bitmin => 0,
167 bitmax => 0,
168 bitmask => 1,
169 },
170 {
171 label => '-',
172 mask_def => 'OPpARG2_MASK',
173 bitmin => 0,
174 bitmax => 1,
175 bitmask => 3,
176 },
177 {
e1e26374
DM
178 label => 'offset',
179 mask_def => 'OPpAVHVSWITCH_MASK',
73665bc4
FC
180 bitmin => 0,
181 bitmax => 1,
182 bitmask => 3,
183 },
184 {
f3574cc6
DM
185 label => '-',
186 mask_def => 'OPpARG3_MASK',
187 bitmin => 0,
188 bitmax => 2,
189 bitmask => 7,
190 },
191 {
192 label => '-',
193 mask_def => 'OPpARG4_MASK',
194 bitmin => 0,
195 bitmax => 3,
196 bitmask => 15,
197 },
198 {
e9fb18e4 199 label => 'range',
f3574cc6
DM
200 mask_def => 'OPpPADRANGE_COUNTMASK',
201 bitcount_def => 'OPpPADRANGE_COUNTSHIFT',
202 bitmin => 0,
203 bitmax => 6,
204 bitmask => 127,
205 },
206 {
e9fb18e4 207 label => 'key',
f3574cc6
DM
208 bitmin => 0,
209 bitmax => 7,
210 bitmask => 255,
211 },
212 {
4fa06845
DM
213 mask_def => 'OPpARGELEM_MASK',
214 bitmin => 1,
215 bitmax => 2,
216 bitmask => 6,
217 enum => [
218 0, 'OPpARGELEM_SV', 'SV',
219 1, 'OPpARGELEM_AV', 'AV',
220 2, 'OPpARGELEM_HV', 'HV',
221 ],
222 },
223 {
f3574cc6 224 mask_def => 'OPpDEREF',
9e209402
FC
225 bitmin => 4,
226 bitmax => 5,
227 bitmask => 48,
f3574cc6
DM
228 enum => [
229 1, 'OPpDEREF_AV', 'DREFAV',
230 2, 'OPpDEREF_HV', 'DREFHV',
231 3, 'OPpDEREF_SV', 'DREFSV',
232 ],
233 },
7aa5b458
FC
234 {
235 mask_def => 'OPpLVREF_TYPE',
9e209402
FC
236 bitmin => 4,
237 bitmax => 5,
238 bitmask => 48,
7aa5b458
FC
239 enum => [
240 0, 'OPpLVREF_SV', 'SV',
241 1, 'OPpLVREF_AV', 'AV',
242 2, 'OPpLVREF_HV', 'HV',
243 3, 'OPpLVREF_CV', 'CV',
244 ],
245 },
f3574cc6
DM
246);
247
7b394f12 248@{$bits{aassign}}{6,5,4,2,1,0} = ('OPpASSIGN_COMMON_SCALAR', 'OPpASSIGN_COMMON_RC1', 'OPpASSIGN_COMMON_AGG', 'OPpASSIGN_TRUEBOOL', $bf[1], $bf[1]);
f3574cc6 249$bits{abs}{0} = $bf[0];
73665bc4 250@{$bits{accept}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
251@{$bits{add}}{1,0} = ($bf[1], $bf[1]);
252$bits{aeach}{0} = $bf[0];
4fa06845 253@{$bits{aelem}}{5,4,1,0} = ($bf[8], $bf[8], $bf[1], $bf[1]);
73665bc4
FC
254@{$bits{aelemfast}}{7,6,5,4,3,2,1,0} = ($bf[6], $bf[6], $bf[6], $bf[6], $bf[6], $bf[6], $bf[6], $bf[6]);
255@{$bits{aelemfast_lex}}{7,6,5,4,3,2,1,0} = ($bf[6], $bf[6], $bf[6], $bf[6], $bf[6], $bf[6], $bf[6], $bf[6]);
f3574cc6
DM
256$bits{akeys}{0} = $bf[0];
257$bits{alarm}{0} = $bf[0];
258$bits{and}{0} = $bf[0];
259$bits{andassign}{0} = $bf[0];
b77472f9 260$bits{anonconst}{0} = $bf[0];
73665bc4
FC
261@{$bits{anonhash}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
262@{$bits{anonlist}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
4fa06845
DM
263$bits{argcheck}{0} = $bf[0];
264$bits{argdefelem}{0} = $bf[0];
265@{$bits{argelem}}{2,1,0} = ($bf[7], $bf[7], $bf[0]);
73665bc4 266@{$bits{atan2}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
267$bits{av2arylen}{0} = $bf[0];
268$bits{avalues}{0} = $bf[0];
73665bc4 269@{$bits{avhvswitch}}{1,0} = ($bf[2], $bf[2]);
f3574cc6 270$bits{backtick}{0} = $bf[0];
73665bc4
FC
271@{$bits{bind}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
272@{$bits{binmode}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
273@{$bits{bit_and}}{1,0} = ($bf[1], $bf[1]);
274@{$bits{bit_or}}{1,0} = ($bf[1], $bf[1]);
275@{$bits{bit_xor}}{1,0} = ($bf[1], $bf[1]);
73665bc4
FC
276@{$bits{bless}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
277@{$bits{caller}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
278@{$bits{chdir}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
279@{$bits{chmod}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
280$bits{chomp}{0} = $bf[0];
281$bits{chop}{0} = $bf[0];
73665bc4 282@{$bits{chown}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
283$bits{chr}{0} = $bf[0];
284$bits{chroot}{0} = $bf[0];
73665bc4 285@{$bits{close}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
286$bits{closedir}{0} = $bf[0];
287$bits{complement}{0} = $bf[0];
d962625f 288@{$bits{concat}}{6,1,0} = ('OPpCONCAT_NESTED', $bf[1], $bf[1]);
f3574cc6 289$bits{cond_expr}{0} = $bf[0];
73665bc4 290@{$bits{connect}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
291@{$bits{const}}{6,4,3,2,1} = ('OPpCONST_BARE', 'OPpCONST_ENTERED', 'OPpCONST_STRICT', 'OPpCONST_SHORTCIRCUIT', 'OPpCONST_NOVER');
292@{$bits{coreargs}}{7,6,1,0} = ('OPpCOREARGS_PUSHMARK', 'OPpCOREARGS_SCALARMOD', 'OPpCOREARGS_DEREF2', 'OPpCOREARGS_DEREF1');
293$bits{cos}{0} = $bf[0];
73665bc4 294@{$bits{crypt}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 295$bits{dbmclose}{0} = $bf[0];
73665bc4 296@{$bits{dbmopen}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 297$bits{defined}{0} = $bf[0];
cc0776d6 298@{$bits{delete}}{6,5,0} = ('OPpSLICE', 'OPpKVSLICE', $bf[0]);
73665bc4 299@{$bits{die}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
300@{$bits{divide}}{1,0} = ($bf[1], $bf[1]);
301$bits{dofile}{0} = $bf[0];
302$bits{dor}{0} = $bf[0];
303$bits{dorassign}{0} = $bf[0];
304$bits{dump}{0} = $bf[0];
305$bits{each}{0} = $bf[0];
306@{$bits{entereval}}{5,4,3,2,1,0} = ('OPpEVAL_RE_REPARSING', 'OPpEVAL_COPHH', 'OPpEVAL_BYTES', 'OPpEVAL_UNICODE', 'OPpEVAL_HAS_HH', $bf[0]);
307$bits{entergiven}{0} = $bf[0];
308$bits{enteriter}{3} = 'OPpITER_DEF';
4fa06845 309@{$bits{entersub}}{5,4,0} = ($bf[8], $bf[8], 'OPpENTERSUB_INARGS');
f3574cc6
DM
310$bits{entertry}{0} = $bf[0];
311$bits{enterwhen}{0} = $bf[0];
73665bc4
FC
312@{$bits{enterwrite}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
313@{$bits{eof}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 314@{$bits{eq}}{1,0} = ($bf[1], $bf[1]);
73665bc4 315@{$bits{exec}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 316@{$bits{exists}}{6,0} = ('OPpEXISTS_SUB', $bf[0]);
73665bc4 317@{$bits{exit}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
318$bits{exp}{0} = $bf[0];
319$bits{fc}{0} = $bf[0];
73665bc4
FC
320@{$bits{fcntl}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
321@{$bits{fileno}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 322$bits{flip}{0} = $bf[0];
73665bc4 323@{$bits{flock}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 324$bits{flop}{0} = $bf[0];
73665bc4 325@{$bits{formline}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
326$bits{ftatime}{0} = $bf[0];
327$bits{ftbinary}{0} = $bf[0];
328$bits{ftblk}{0} = $bf[0];
329$bits{ftchr}{0} = $bf[0];
330$bits{ftctime}{0} = $bf[0];
331$bits{ftdir}{0} = $bf[0];
332$bits{fteexec}{0} = $bf[0];
333$bits{fteowned}{0} = $bf[0];
334$bits{fteread}{0} = $bf[0];
335$bits{ftewrite}{0} = $bf[0];
336$bits{ftfile}{0} = $bf[0];
337$bits{ftis}{0} = $bf[0];
338$bits{ftlink}{0} = $bf[0];
339$bits{ftmtime}{0} = $bf[0];
340$bits{ftpipe}{0} = $bf[0];
341$bits{ftrexec}{0} = $bf[0];
342$bits{ftrowned}{0} = $bf[0];
343$bits{ftrread}{0} = $bf[0];
344$bits{ftrwrite}{0} = $bf[0];
345$bits{ftsgid}{0} = $bf[0];
346$bits{ftsize}{0} = $bf[0];
347$bits{ftsock}{0} = $bf[0];
348$bits{ftsuid}{0} = $bf[0];
349$bits{ftsvtx}{0} = $bf[0];
350$bits{fttext}{0} = $bf[0];
351$bits{fttty}{0} = $bf[0];
352$bits{ftzero}{0} = $bf[0];
353@{$bits{ge}}{1,0} = ($bf[1], $bf[1]);
354@{$bits{gelem}}{1,0} = ($bf[1], $bf[1]);
73665bc4 355@{$bits{getc}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 356$bits{getpeername}{0} = $bf[0];
73665bc4
FC
357@{$bits{getpgrp}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
358@{$bits{getpriority}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
359$bits{getsockname}{0} = $bf[0];
360$bits{ggrgid}{0} = $bf[0];
361$bits{ggrnam}{0} = $bf[0];
73665bc4 362@{$bits{ghbyaddr}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 363$bits{ghbyname}{0} = $bf[0];
73665bc4
FC
364@{$bits{glob}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
365@{$bits{gmtime}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
366@{$bits{gnbyaddr}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
367$bits{gnbyname}{0} = $bf[0];
368$bits{goto}{0} = $bf[0];
369$bits{gpbyname}{0} = $bf[0];
73665bc4 370@{$bits{gpbynumber}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
371$bits{gpwnam}{0} = $bf[0];
372$bits{gpwuid}{0} = $bf[0];
fb0c7c3c 373$bits{grepstart}{0} = $bf[0];
f3574cc6 374$bits{grepwhile}{0} = $bf[0];
73665bc4
FC
375@{$bits{gsbyname}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
376@{$bits{gsbyport}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
377@{$bits{gsockopt}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
378@{$bits{gt}}{1,0} = ($bf[1], $bf[1]);
379$bits{gv}{5} = 'OPpEARLY_CV';
4fa06845 380@{$bits{helem}}{5,4,1,0} = ($bf[8], $bf[8], $bf[1], $bf[1]);
f3574cc6
DM
381$bits{hex}{0} = $bf[0];
382@{$bits{i_add}}{1,0} = ($bf[1], $bf[1]);
383@{$bits{i_divide}}{1,0} = ($bf[1], $bf[1]);
384@{$bits{i_eq}}{1,0} = ($bf[1], $bf[1]);
385@{$bits{i_ge}}{1,0} = ($bf[1], $bf[1]);
386@{$bits{i_gt}}{1,0} = ($bf[1], $bf[1]);
387@{$bits{i_le}}{1,0} = ($bf[1], $bf[1]);
388@{$bits{i_lt}}{1,0} = ($bf[1], $bf[1]);
389@{$bits{i_modulo}}{1,0} = ($bf[1], $bf[1]);
390@{$bits{i_multiply}}{1,0} = ($bf[1], $bf[1]);
391@{$bits{i_ncmp}}{1,0} = ($bf[1], $bf[1]);
392@{$bits{i_ne}}{1,0} = ($bf[1], $bf[1]);
393$bits{i_negate}{0} = $bf[0];
394$bits{i_postdec}{0} = $bf[0];
395$bits{i_postinc}{0} = $bf[0];
396$bits{i_predec}{0} = $bf[0];
397$bits{i_preinc}{0} = $bf[0];
398@{$bits{i_subtract}}{1,0} = ($bf[1], $bf[1]);
73665bc4 399@{$bits{index}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 400$bits{int}{0} = $bf[0];
73665bc4
FC
401@{$bits{ioctl}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
402@{$bits{join}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 403$bits{keys}{0} = $bf[0];
73665bc4 404@{$bits{kill}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
405$bits{last}{0} = $bf[0];
406$bits{lc}{0} = $bf[0];
407$bits{lcfirst}{0} = $bf[0];
408@{$bits{le}}{1,0} = ($bf[1], $bf[1]);
409$bits{leaveeval}{0} = $bf[0];
410$bits{leavegiven}{0} = $bf[0];
411@{$bits{leaveloop}}{1,0} = ($bf[1], $bf[1]);
412$bits{leavesub}{0} = $bf[0];
413$bits{leavesublv}{0} = $bf[0];
414$bits{leavewhen}{0} = $bf[0];
415$bits{leavewrite}{0} = $bf[0];
416@{$bits{left_shift}}{1,0} = ($bf[1], $bf[1]);
417$bits{length}{0} = $bf[0];
73665bc4 418@{$bits{link}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 419$bits{list}{6} = 'OPpLIST_GUESSED';
73665bc4 420@{$bits{listen}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
421$bits{localtime}{0} = $bf[0];
422$bits{lock}{0} = $bf[0];
423$bits{log}{0} = $bf[0];
424@{$bits{lslice}}{1,0} = ($bf[1], $bf[1]);
425$bits{lstat}{0} = $bf[0];
426@{$bits{lt}}{1,0} = ($bf[1], $bf[1]);
2882b3ff 427$bits{lvavref}{0} = $bf[0];
4fa06845 428@{$bits{lvref}}{5,4,0} = ($bf[9], $bf[9], $bf[0]);
fb0c7c3c 429$bits{mapstart}{0} = $bf[0];
f3574cc6
DM
430$bits{mapwhile}{0} = $bf[0];
431$bits{method}{0} = $bf[0];
b46e009d 432$bits{method_named}{0} = $bf[0];
810bd8b7 433$bits{method_redir}{0} = $bf[0];
434$bits{method_redir_super}{0} = $bf[0];
7d6c333c 435$bits{method_super}{0} = $bf[0];
73665bc4 436@{$bits{mkdir}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 437@{$bits{modulo}}{1,0} = ($bf[1], $bf[1]);
73665bc4
FC
438@{$bits{msgctl}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
439@{$bits{msgget}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
440@{$bits{msgrcv}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
441@{$bits{msgsnd}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
e839e6ed 442@{$bits{multiconcat}}{6,5,3,0} = ('OPpMULTICONCAT_APPEND', 'OPpMULTICONCAT_FAKE', 'OPpMULTICONCAT_STRINGIFY', $bf[0]);
fedf30e1 443@{$bits{multideref}}{5,4,0} = ('OPpMULTIDEREF_DELETE', 'OPpMULTIDEREF_EXISTS', $bf[0]);
f3574cc6 444@{$bits{multiply}}{1,0} = ($bf[1], $bf[1]);
5d01050a
FC
445@{$bits{nbit_and}}{1,0} = ($bf[1], $bf[1]);
446@{$bits{nbit_or}}{1,0} = ($bf[1], $bf[1]);
447@{$bits{nbit_xor}}{1,0} = ($bf[1], $bf[1]);
f3574cc6 448@{$bits{ncmp}}{1,0} = ($bf[1], $bf[1]);
5d01050a 449$bits{ncomplement}{0} = $bf[0];
f3574cc6
DM
450@{$bits{ne}}{1,0} = ($bf[1], $bf[1]);
451$bits{negate}{0} = $bf[0];
452$bits{next}{0} = $bf[0];
453$bits{not}{0} = $bf[0];
454$bits{oct}{0} = $bf[0];
455$bits{once}{0} = $bf[0];
73665bc4
FC
456@{$bits{open}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
457@{$bits{open_dir}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
458$bits{or}{0} = $bf[0];
459$bits{orassign}{0} = $bf[0];
460$bits{ord}{0} = $bf[0];
73665bc4 461@{$bits{pack}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
748f2c65 462$bits{padhv}{0} = 'OPpPADHV_ISKEYS';
73665bc4 463@{$bits{padrange}}{6,5,4,3,2,1,0} = ($bf[5], $bf[5], $bf[5], $bf[5], $bf[5], $bf[5], $bf[5]);
4fa06845 464@{$bits{padsv}}{5,4} = ($bf[8], $bf[8]);
73665bc4 465@{$bits{pipe_op}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
466$bits{pop}{0} = $bf[0];
467$bits{pos}{0} = $bf[0];
468$bits{postdec}{0} = $bf[0];
469$bits{postinc}{0} = $bf[0];
470@{$bits{pow}}{1,0} = ($bf[1], $bf[1]);
471$bits{predec}{0} = $bf[0];
472$bits{preinc}{0} = $bf[0];
473$bits{prototype}{0} = $bf[0];
73665bc4 474@{$bits{push}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 475$bits{quotemeta}{0} = $bf[0];
73665bc4 476@{$bits{rand}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 477$bits{range}{0} = $bf[0];
73665bc4 478@{$bits{read}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
479$bits{readdir}{0} = $bf[0];
480$bits{readline}{0} = $bf[0];
481$bits{readlink}{0} = $bf[0];
73665bc4 482@{$bits{recv}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
483$bits{redo}{0} = $bf[0];
484$bits{ref}{0} = $bf[0];
4fa06845 485@{$bits{refassign}}{5,4,1,0} = ($bf[9], $bf[9], $bf[1], $bf[1]);
f3574cc6
DM
486$bits{refgen}{0} = $bf[0];
487$bits{regcmaybe}{0} = $bf[0];
488$bits{regcomp}{0} = $bf[0];
489$bits{regcreset}{0} = $bf[0];
73665bc4 490@{$bits{rename}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
491@{$bits{repeat}}{6,1,0} = ('OPpREPEAT_DOLIST', $bf[1], $bf[1]);
492$bits{require}{0} = $bf[0];
73665bc4 493@{$bits{reset}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
494@{$bits{reverse}}{3,0} = ('OPpREVERSE_INPLACE', $bf[0]);
495$bits{rewinddir}{0} = $bf[0];
496@{$bits{right_shift}}{1,0} = ($bf[1], $bf[1]);
73665bc4 497@{$bits{rindex}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
498$bits{rmdir}{0} = $bf[0];
499$bits{rv2av}{0} = $bf[0];
9e209402 500@{$bits{rv2cv}}{7,5,0} = ('OPpENTERSUB_NOPAREN', 'OPpMAY_RETURN_CONSTANT', $bf[0]);
4fa06845 501@{$bits{rv2gv}}{6,5,4,2,0} = ('OPpALLOW_FAKE', $bf[8], $bf[8], 'OPpDONT_INIT_GV', $bf[0]);
748f2c65 502$bits{rv2hv}{0} = 'OPpRV2HV_ISKEYS';
4fa06845 503@{$bits{rv2sv}}{5,4,0} = ($bf[8], $bf[8], $bf[0]);
f3574cc6 504@{$bits{sassign}}{7,6,1,0} = ('OPpASSIGN_CV_TO_GV', 'OPpASSIGN_BACKWARDS', $bf[1], $bf[1]);
5d01050a
FC
505@{$bits{sbit_and}}{1,0} = ($bf[1], $bf[1]);
506@{$bits{sbit_or}}{1,0} = ($bf[1], $bf[1]);
507@{$bits{sbit_xor}}{1,0} = ($bf[1], $bf[1]);
f3574cc6
DM
508$bits{scalar}{0} = $bf[0];
509$bits{schomp}{0} = $bf[0];
510$bits{schop}{0} = $bf[0];
511@{$bits{scmp}}{1,0} = ($bf[1], $bf[1]);
5d01050a 512$bits{scomplement}{0} = $bf[0];
73665bc4
FC
513@{$bits{seek}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
514@{$bits{seekdir}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
515@{$bits{select}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
516@{$bits{semctl}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
517@{$bits{semget}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
518@{$bits{semop}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
519@{$bits{send}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 520@{$bits{seq}}{1,0} = ($bf[1], $bf[1]);
73665bc4
FC
521@{$bits{setpgrp}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
522@{$bits{setpriority}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
523@{$bits{sge}}{1,0} = ($bf[1], $bf[1]);
524@{$bits{sgt}}{1,0} = ($bf[1], $bf[1]);
525$bits{shift}{0} = $bf[0];
73665bc4
FC
526@{$bits{shmctl}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
527@{$bits{shmget}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
528@{$bits{shmread}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
529@{$bits{shmwrite}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 530$bits{shostent}{0} = $bf[0];
73665bc4 531@{$bits{shutdown}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
532$bits{sin}{0} = $bf[0];
533@{$bits{sle}}{1,0} = ($bf[1], $bf[1]);
73665bc4 534@{$bits{sleep}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
535@{$bits{slt}}{1,0} = ($bf[1], $bf[1]);
536@{$bits{smartmatch}}{1,0} = ($bf[1], $bf[1]);
537@{$bits{sne}}{1,0} = ($bf[1], $bf[1]);
538$bits{snetent}{0} = $bf[0];
73665bc4
FC
539@{$bits{socket}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
540@{$bits{sockpair}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
e2091bb6 541@{$bits{sort}}{7,6,4,3,2,1,0} = ('OPpSORT_UNSTABLE', 'OPpSORT_STABLE', 'OPpSORT_DESCEND', 'OPpSORT_INPLACE', 'OPpSORT_REVERSE', 'OPpSORT_INTEGER', 'OPpSORT_NUMERIC');
73665bc4 542@{$bits{splice}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
692044df 543@{$bits{split}}{4,3,2} = ('OPpSPLIT_ASSIGN', 'OPpSPLIT_LEX', 'OPpSPLIT_IMPLIM');
73665bc4 544@{$bits{sprintf}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
545$bits{sprotoent}{0} = $bf[0];
546$bits{sqrt}{0} = $bf[0];
73665bc4 547@{$bits{srand}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 548$bits{srefgen}{0} = $bf[0];
73665bc4 549@{$bits{sselect}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 550$bits{sservent}{0} = $bf[0];
73665bc4 551@{$bits{ssockopt}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 552$bits{stat}{0} = $bf[0];
73665bc4 553@{$bits{stringify}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
554$bits{study}{0} = $bf[0];
555$bits{substcont}{0} = $bf[0];
73665bc4 556@{$bits{substr}}{4,2,1,0} = ('OPpSUBSTR_REPL_FIRST', $bf[3], $bf[3], $bf[3]);
f3574cc6 557@{$bits{subtract}}{1,0} = ($bf[1], $bf[1]);
73665bc4
FC
558@{$bits{symlink}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
559@{$bits{syscall}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
560@{$bits{sysopen}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
561@{$bits{sysread}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
562@{$bits{sysseek}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
563@{$bits{system}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
564@{$bits{syswrite}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
565@{$bits{tell}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 566$bits{telldir}{0} = $bf[0];
73665bc4 567@{$bits{tie}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 568$bits{tied}{0} = $bf[0];
73665bc4 569@{$bits{truncate}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
570$bits{uc}{0} = $bf[0];
571$bits{ucfirst}{0} = $bf[0];
73665bc4 572@{$bits{umask}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 573$bits{undef}{0} = $bf[0];
73665bc4
FC
574@{$bits{unlink}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
575@{$bits{unpack}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
576@{$bits{unshift}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6 577$bits{untie}{0} = $bf[0];
73665bc4 578@{$bits{utime}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
579$bits{values}{0} = $bf[0];
580@{$bits{vec}}{1,0} = ($bf[1], $bf[1]);
73665bc4
FC
581@{$bits{waitpid}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
582@{$bits{warn}}{3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4]);
f3574cc6
DM
583@{$bits{xor}}{1,0} = ($bf[1], $bf[1]);
584
585
586our %defines = (
9e209402 587 OPpALLOW_FAKE => 64,
f3574cc6
DM
588 OPpARG1_MASK => 1,
589 OPpARG2_MASK => 3,
590 OPpARG3_MASK => 7,
591 OPpARG4_MASK => 15,
4fa06845
DM
592 OPpARGELEM_AV => 2,
593 OPpARGELEM_HV => 4,
594 OPpARGELEM_MASK => 6,
595 OPpARGELEM_SV => 0,
f3574cc6 596 OPpASSIGN_BACKWARDS => 64,
a5f48505
DM
597 OPpASSIGN_COMMON_AGG => 16,
598 OPpASSIGN_COMMON_RC1 => 32,
599 OPpASSIGN_COMMON_SCALAR => 64,
f3574cc6 600 OPpASSIGN_CV_TO_GV => 128,
7b394f12 601 OPpASSIGN_TRUEBOOL => 4,
e1e26374 602 OPpAVHVSWITCH_MASK => 3,
d962625f 603 OPpCONCAT_NESTED => 64,
f3574cc6
DM
604 OPpCONST_BARE => 64,
605 OPpCONST_ENTERED => 16,
606 OPpCONST_NOVER => 2,
607 OPpCONST_SHORTCIRCUIT => 4,
608 OPpCONST_STRICT => 8,
609 OPpCOREARGS_DEREF1 => 1,
610 OPpCOREARGS_DEREF2 => 2,
611 OPpCOREARGS_PUSHMARK => 128,
612 OPpCOREARGS_SCALARMOD => 64,
9e209402
FC
613 OPpDEREF => 48,
614 OPpDEREF_AV => 16,
615 OPpDEREF_HV => 32,
616 OPpDEREF_SV => 48,
f3574cc6
DM
617 OPpDONT_INIT_GV => 4,
618 OPpEARLY_CV => 32,
619 OPpENTERSUB_AMPER => 8,
9e209402 620 OPpENTERSUB_DB => 64,
f3574cc6
DM
621 OPpENTERSUB_HASTARG => 4,
622 OPpENTERSUB_INARGS => 1,
623 OPpENTERSUB_NOPAREN => 128,
624 OPpEVAL_BYTES => 8,
625 OPpEVAL_COPHH => 16,
626 OPpEVAL_HAS_HH => 2,
627 OPpEVAL_RE_REPARSING => 32,
628 OPpEVAL_UNICODE => 4,
629 OPpEXISTS_SUB => 64,
630 OPpFLIP_LINENUM => 64,
631 OPpFT_ACCESS => 2,
632 OPpFT_AFTER_t => 16,
633 OPpFT_STACKED => 4,
634 OPpFT_STACKING => 8,
f3574cc6
DM
635 OPpHINT_STRICT_REFS => 2,
636 OPpHUSH_VMSISH => 32,
7e8d786b 637 OPpINDEX_BOOLNEG => 64,
f3574cc6 638 OPpITER_DEF => 8,
93661e56 639 OPpITER_REVERSED => 2,
cc0776d6 640 OPpKVSLICE => 32,
f3574cc6
DM
641 OPpLIST_GUESSED => 64,
642 OPpLVALUE => 128,
9e209402 643 OPpLVAL_DEFER => 64,
f3574cc6 644 OPpLVAL_INTRO => 128,
9e209402
FC
645 OPpLVREF_AV => 16,
646 OPpLVREF_CV => 48,
6102323a 647 OPpLVREF_ELEM => 4,
9e209402 648 OPpLVREF_HV => 32,
5a36b2c0 649 OPpLVREF_ITER => 8,
c2380ea1 650 OPpLVREF_SV => 0,
9e209402 651 OPpLVREF_TYPE => 48,
f3574cc6 652 OPpMAYBE_LVSUB => 8,
9e209402
FC
653 OPpMAYBE_TRUEBOOL => 16,
654 OPpMAY_RETURN_CONSTANT => 32,
e839e6ed
DM
655 OPpMULTICONCAT_APPEND => 64,
656 OPpMULTICONCAT_FAKE => 32,
657 OPpMULTICONCAT_STRINGIFY => 8,
fedf30e1
DM
658 OPpMULTIDEREF_DELETE => 32,
659 OPpMULTIDEREF_EXISTS => 16,
f3574cc6
DM
660 OPpOFFBYONE => 128,
661 OPpOPEN_IN_CRLF => 32,
662 OPpOPEN_IN_RAW => 16,
663 OPpOPEN_OUT_CRLF => 128,
664 OPpOPEN_OUT_RAW => 64,
9e209402 665 OPpOUR_INTRO => 64,
748f2c65 666 OPpPADHV_ISKEYS => 1,
f3574cc6
DM
667 OPpPADRANGE_COUNTMASK => 127,
668 OPpPADRANGE_COUNTSHIFT => 7,
9e209402 669 OPpPAD_STATE => 64,
f3574cc6
DM
670 OPpPV_IS_UTF8 => 128,
671 OPpREFCOUNTED => 64,
672 OPpREPEAT_DOLIST => 64,
673 OPpREVERSE_INPLACE => 8,
748f2c65 674 OPpRV2HV_ISKEYS => 1,
f3574cc6
DM
675 OPpSLICE => 64,
676 OPpSLICEWARNING => 4,
677 OPpSORT_DESCEND => 16,
678 OPpSORT_INPLACE => 8,
679 OPpSORT_INTEGER => 2,
680 OPpSORT_NUMERIC => 1,
f3574cc6
DM
681 OPpSORT_REVERSE => 4,
682 OPpSORT_STABLE => 64,
afe59f35 683 OPpSORT_UNSTABLE => 128,
5012eebe 684 OPpSPLIT_ASSIGN => 16,
692044df 685 OPpSPLIT_IMPLIM => 4,
5012eebe 686 OPpSPLIT_LEX => 8,
f3574cc6
DM
687 OPpSUBSTR_REPL_FIRST => 16,
688 OPpTARGET_MY => 16,
689 OPpTRANS_COMPLEMENT => 32,
690 OPpTRANS_DELETE => 128,
691 OPpTRANS_FROM_UTF => 1,
692 OPpTRANS_GROWS => 64,
693 OPpTRANS_IDENTICAL => 4,
694 OPpTRANS_SQUASH => 8,
695 OPpTRANS_TO_UTF => 2,
696 OPpTRUEBOOL => 32,
697);
698
699our %labels = (
700 OPpALLOW_FAKE => 'FAKE',
4fa06845
DM
701 OPpARGELEM_AV => 'AV',
702 OPpARGELEM_HV => 'HV',
703 OPpARGELEM_SV => 'SV',
f3574cc6 704 OPpASSIGN_BACKWARDS => 'BKWARD',
a5f48505
DM
705 OPpASSIGN_COMMON_AGG => 'COM_AGG',
706 OPpASSIGN_COMMON_RC1 => 'COM_RC1',
707 OPpASSIGN_COMMON_SCALAR => 'COM_SCALAR',
f3574cc6 708 OPpASSIGN_CV_TO_GV => 'CV2GV',
7b394f12 709 OPpASSIGN_TRUEBOOL => 'BOOL',
d962625f 710 OPpCONCAT_NESTED => 'NESTED',
f3574cc6
DM
711 OPpCONST_BARE => 'BARE',
712 OPpCONST_ENTERED => 'ENTERED',
713 OPpCONST_NOVER => 'NOVER',
714 OPpCONST_SHORTCIRCUIT => 'SHORT',
715 OPpCONST_STRICT => 'STRICT',
716 OPpCOREARGS_DEREF1 => 'DEREF1',
717 OPpCOREARGS_DEREF2 => 'DEREF2',
718 OPpCOREARGS_PUSHMARK => 'MARK',
719 OPpCOREARGS_SCALARMOD => '$MOD',
720 OPpDEREF_AV => 'DREFAV',
721 OPpDEREF_HV => 'DREFHV',
722 OPpDEREF_SV => 'DREFSV',
723 OPpDONT_INIT_GV => 'NOINIT',
724 OPpEARLY_CV => 'EARLYCV',
725 OPpENTERSUB_AMPER => 'AMPER',
726 OPpENTERSUB_DB => 'DBG',
727 OPpENTERSUB_HASTARG => 'TARG',
728 OPpENTERSUB_INARGS => 'INARGS',
729 OPpENTERSUB_NOPAREN => 'NO()',
730 OPpEVAL_BYTES => 'BYTES',
731 OPpEVAL_COPHH => 'COPHH',
732 OPpEVAL_HAS_HH => 'HAS_HH',
c486bd5c 733 OPpEVAL_RE_REPARSING => 'REPARSE',
f3574cc6
DM
734 OPpEVAL_UNICODE => 'UNI',
735 OPpEXISTS_SUB => 'SUB',
736 OPpFLIP_LINENUM => 'LINENUM',
737 OPpFT_ACCESS => 'FTACCESS',
738 OPpFT_AFTER_t => 'FTAFTERt',
739 OPpFT_STACKED => 'FTSTACKED',
740 OPpFT_STACKING => 'FTSTACKING',
c486bd5c 741 OPpHINT_STRICT_REFS => 'STRICT',
f3574cc6 742 OPpHUSH_VMSISH => 'HUSH',
7e8d786b 743 OPpINDEX_BOOLNEG => 'NEG',
c486bd5c 744 OPpITER_DEF => 'DEF',
f3574cc6 745 OPpITER_REVERSED => 'REVERSED',
cc0776d6 746 OPpKVSLICE => 'KVSLICE',
f3574cc6
DM
747 OPpLIST_GUESSED => 'GUESSED',
748 OPpLVALUE => 'LV',
749 OPpLVAL_DEFER => 'LVDEFER',
750 OPpLVAL_INTRO => 'LVINTRO',
c2380ea1
FC
751 OPpLVREF_AV => 'AV',
752 OPpLVREF_CV => 'CV',
6102323a 753 OPpLVREF_ELEM => 'ELEM',
c2380ea1 754 OPpLVREF_HV => 'HV',
5a36b2c0 755 OPpLVREF_ITER => 'ITER',
c2380ea1 756 OPpLVREF_SV => 'SV',
f3574cc6
DM
757 OPpMAYBE_LVSUB => 'LVSUB',
758 OPpMAYBE_TRUEBOOL => 'BOOL?',
759 OPpMAY_RETURN_CONSTANT => 'CONST',
e839e6ed
DM
760 OPpMULTICONCAT_APPEND => 'APPEND',
761 OPpMULTICONCAT_FAKE => 'FAKE',
762 OPpMULTICONCAT_STRINGIFY => 'STRINGIFY',
fedf30e1
DM
763 OPpMULTIDEREF_DELETE => 'DELETE',
764 OPpMULTIDEREF_EXISTS => 'EXISTS',
f3574cc6
DM
765 OPpOFFBYONE => '+1',
766 OPpOPEN_IN_CRLF => 'INCR',
767 OPpOPEN_IN_RAW => 'INBIN',
768 OPpOPEN_OUT_CRLF => 'OUTCR',
769 OPpOPEN_OUT_RAW => 'OUTBIN',
770 OPpOUR_INTRO => 'OURINTR',
748f2c65 771 OPpPADHV_ISKEYS => 'KEYS',
f3574cc6
DM
772 OPpPAD_STATE => 'STATE',
773 OPpPV_IS_UTF8 => 'UTF',
774 OPpREFCOUNTED => 'REFC',
775 OPpREPEAT_DOLIST => 'DOLIST',
776 OPpREVERSE_INPLACE => 'INPLACE',
748f2c65 777 OPpRV2HV_ISKEYS => 'KEYS',
f3574cc6
DM
778 OPpSLICE => 'SLICE',
779 OPpSLICEWARNING => 'SLICEWARN',
780 OPpSORT_DESCEND => 'DESC',
781 OPpSORT_INPLACE => 'INPLACE',
782 OPpSORT_INTEGER => 'INT',
783 OPpSORT_NUMERIC => 'NUM',
f3574cc6
DM
784 OPpSORT_REVERSE => 'REV',
785 OPpSORT_STABLE => 'STABLE',
afe59f35 786 OPpSORT_UNSTABLE => 'UNSTABLE',
5012eebe 787 OPpSPLIT_ASSIGN => 'ASSIGN',
f3574cc6 788 OPpSPLIT_IMPLIM => 'IMPLIM',
5012eebe 789 OPpSPLIT_LEX => 'LEX',
f3574cc6
DM
790 OPpSUBSTR_REPL_FIRST => 'REPL1ST',
791 OPpTARGET_MY => 'TARGMY',
792 OPpTRANS_COMPLEMENT => 'COMPL',
793 OPpTRANS_DELETE => 'DEL',
794 OPpTRANS_FROM_UTF => '<UTF',
795 OPpTRANS_GROWS => 'GROWS',
796 OPpTRANS_IDENTICAL => 'IDENT',
797 OPpTRANS_SQUASH => 'SQUASH',
798 OPpTRANS_TO_UTF => '>UTF',
799 OPpTRUEBOOL => 'BOOL',
800);
801
dc1230de
FC
802
803our %ops_using = (
804 OPpALLOW_FAKE => [qw(rv2gv)],
805 OPpASSIGN_BACKWARDS => [qw(sassign)],
a5f48505 806 OPpASSIGN_COMMON_AGG => [qw(aassign)],
d962625f 807 OPpCONCAT_NESTED => [qw(concat)],
dc1230de
FC
808 OPpCONST_BARE => [qw(const)],
809 OPpCOREARGS_DEREF1 => [qw(coreargs)],
810 OPpEARLY_CV => [qw(gv)],
811 OPpENTERSUB_AMPER => [qw(entersub rv2cv)],
812 OPpENTERSUB_INARGS => [qw(entersub)],
813 OPpENTERSUB_NOPAREN => [qw(rv2cv)],
814 OPpEVAL_BYTES => [qw(entereval)],
815 OPpEXISTS_SUB => [qw(exists)],
816 OPpFLIP_LINENUM => [qw(flip flop)],
817 OPpFT_ACCESS => [qw(fteexec fteread ftewrite ftrexec ftrread ftrwrite)],
818 OPpFT_AFTER_t => [qw(ftatime ftbinary ftblk ftchr ftctime ftdir fteexec fteowned fteread ftewrite ftfile ftis ftlink ftmtime ftpipe ftrexec ftrowned ftrread ftrwrite ftsgid ftsize ftsock ftsuid ftsvtx fttext fttty ftzero)],
fedf30e1 819 OPpHINT_STRICT_REFS => [qw(entersub multideref rv2av rv2cv rv2gv rv2hv rv2sv)],
dc1230de 820 OPpHUSH_VMSISH => [qw(dbstate nextstate)],
7e8d786b 821 OPpINDEX_BOOLNEG => [qw(index rindex)],
dc1230de
FC
822 OPpITER_DEF => [qw(enteriter)],
823 OPpITER_REVERSED => [qw(enteriter iter)],
cc0776d6 824 OPpKVSLICE => [qw(delete)],
dc1230de
FC
825 OPpLIST_GUESSED => [qw(list)],
826 OPpLVALUE => [qw(leave leaveloop)],
fedf30e1 827 OPpLVAL_DEFER => [qw(aelem helem multideref)],
e839e6ed 828 OPpLVAL_INTRO => [qw(aelem aslice cond_expr delete enteriter entersub gvsv helem hslice list lvavref lvref lvrefslice multiconcat multideref padav padhv padrange padsv pushmark refassign rv2av rv2gv rv2hv rv2sv split)],
dc1230de 829 OPpLVREF_ELEM => [qw(lvref refassign)],
4fa080db 830 OPpMAYBE_LVSUB => [qw(aassign aelem akeys aslice av2arylen avhvswitch helem hslice keys kvaslice kvhslice multideref padav padhv pos rv2av rv2gv rv2hv substr values vec)],
ba75e9a4 831 OPpMAYBE_TRUEBOOL => [qw(padhv ref rv2hv)],
e839e6ed 832 OPpMULTICONCAT_APPEND => [qw(multiconcat)],
fedf30e1 833 OPpMULTIDEREF_DELETE => [qw(multideref)],
dc1230de
FC
834 OPpOFFBYONE => [qw(caller runcv wantarray)],
835 OPpOPEN_IN_CRLF => [qw(backtick open)],
836 OPpOUR_INTRO => [qw(enteriter gvsv rv2av rv2hv rv2sv split)],
748f2c65 837 OPpPADHV_ISKEYS => [qw(padhv)],
dc1230de
FC
838 OPpPAD_STATE => [qw(lvavref lvref padav padhv padsv pushmark refassign)],
839 OPpPV_IS_UTF8 => [qw(dump goto last next redo)],
840 OPpREFCOUNTED => [qw(leave leaveeval leavesub leavesublv leavewrite)],
841 OPpREPEAT_DOLIST => [qw(repeat)],
842 OPpREVERSE_INPLACE => [qw(reverse)],
748f2c65 843 OPpRV2HV_ISKEYS => [qw(rv2hv)],
dc1230de
FC
844 OPpSLICEWARNING => [qw(aslice hslice padav padhv rv2av rv2hv)],
845 OPpSORT_DESCEND => [qw(sort)],
5012eebe 846 OPpSPLIT_ASSIGN => [qw(split)],
dc1230de 847 OPpSUBSTR_REPL_FIRST => [qw(substr)],
e839e6ed 848 OPpTARGET_MY => [qw(abs add atan2 chdir chmod chomp chown chr chroot concat cos crypt divide exec exp flock getpgrp getppid getpriority hex i_add i_divide i_modulo i_multiply i_subtract index int kill left_shift length link log mkdir modulo multiconcat multiply nbit_and nbit_or nbit_xor ncomplement oct ord pow push rand rename right_shift rindex rmdir schomp scomplement setpgrp setpriority sin sleep sqrt srand stringify subtract symlink system time unlink unshift utime wait waitpid)],
dc1230de 849 OPpTRANS_COMPLEMENT => [qw(trans transr)],
7e8d786b 850 OPpTRUEBOOL => [qw(grepwhile index length padav padhv pos ref rindex rv2av rv2hv subst)],
dc1230de
FC
851);
852
a5f48505
DM
853$ops_using{OPpASSIGN_COMMON_RC1} = $ops_using{OPpASSIGN_COMMON_AGG};
854$ops_using{OPpASSIGN_COMMON_SCALAR} = $ops_using{OPpASSIGN_COMMON_AGG};
dc1230de 855$ops_using{OPpASSIGN_CV_TO_GV} = $ops_using{OPpASSIGN_BACKWARDS};
7b394f12 856$ops_using{OPpASSIGN_TRUEBOOL} = $ops_using{OPpASSIGN_COMMON_AGG};
dc1230de
FC
857$ops_using{OPpCONST_ENTERED} = $ops_using{OPpCONST_BARE};
858$ops_using{OPpCONST_NOVER} = $ops_using{OPpCONST_BARE};
859$ops_using{OPpCONST_SHORTCIRCUIT} = $ops_using{OPpCONST_BARE};
860$ops_using{OPpCONST_STRICT} = $ops_using{OPpCONST_BARE};
861$ops_using{OPpCOREARGS_DEREF2} = $ops_using{OPpCOREARGS_DEREF1};
862$ops_using{OPpCOREARGS_PUSHMARK} = $ops_using{OPpCOREARGS_DEREF1};
863$ops_using{OPpCOREARGS_SCALARMOD} = $ops_using{OPpCOREARGS_DEREF1};
864$ops_using{OPpDONT_INIT_GV} = $ops_using{OPpALLOW_FAKE};
865$ops_using{OPpENTERSUB_DB} = $ops_using{OPpENTERSUB_AMPER};
866$ops_using{OPpENTERSUB_HASTARG} = $ops_using{OPpENTERSUB_AMPER};
867$ops_using{OPpEVAL_COPHH} = $ops_using{OPpEVAL_BYTES};
868$ops_using{OPpEVAL_HAS_HH} = $ops_using{OPpEVAL_BYTES};
869$ops_using{OPpEVAL_RE_REPARSING} = $ops_using{OPpEVAL_BYTES};
870$ops_using{OPpEVAL_UNICODE} = $ops_using{OPpEVAL_BYTES};
871$ops_using{OPpFT_STACKED} = $ops_using{OPpFT_AFTER_t};
872$ops_using{OPpFT_STACKING} = $ops_using{OPpFT_AFTER_t};
873$ops_using{OPpLVREF_ITER} = $ops_using{OPpLVREF_ELEM};
874$ops_using{OPpMAY_RETURN_CONSTANT} = $ops_using{OPpENTERSUB_NOPAREN};
e839e6ed
DM
875$ops_using{OPpMULTICONCAT_FAKE} = $ops_using{OPpMULTICONCAT_APPEND};
876$ops_using{OPpMULTICONCAT_STRINGIFY} = $ops_using{OPpMULTICONCAT_APPEND};
fedf30e1 877$ops_using{OPpMULTIDEREF_EXISTS} = $ops_using{OPpMULTIDEREF_DELETE};
dc1230de
FC
878$ops_using{OPpOPEN_IN_RAW} = $ops_using{OPpOPEN_IN_CRLF};
879$ops_using{OPpOPEN_OUT_CRLF} = $ops_using{OPpOPEN_IN_CRLF};
880$ops_using{OPpOPEN_OUT_RAW} = $ops_using{OPpOPEN_IN_CRLF};
cc0776d6 881$ops_using{OPpSLICE} = $ops_using{OPpKVSLICE};
dc1230de
FC
882$ops_using{OPpSORT_INPLACE} = $ops_using{OPpSORT_DESCEND};
883$ops_using{OPpSORT_INTEGER} = $ops_using{OPpSORT_DESCEND};
884$ops_using{OPpSORT_NUMERIC} = $ops_using{OPpSORT_DESCEND};
dc1230de
FC
885$ops_using{OPpSORT_REVERSE} = $ops_using{OPpSORT_DESCEND};
886$ops_using{OPpSORT_STABLE} = $ops_using{OPpSORT_DESCEND};
afe59f35 887$ops_using{OPpSORT_UNSTABLE} = $ops_using{OPpSORT_DESCEND};
5012eebe
DM
888$ops_using{OPpSPLIT_IMPLIM} = $ops_using{OPpSPLIT_ASSIGN};
889$ops_using{OPpSPLIT_LEX} = $ops_using{OPpSPLIT_ASSIGN};
dc1230de
FC
890$ops_using{OPpTRANS_DELETE} = $ops_using{OPpTRANS_COMPLEMENT};
891$ops_using{OPpTRANS_FROM_UTF} = $ops_using{OPpTRANS_COMPLEMENT};
892$ops_using{OPpTRANS_GROWS} = $ops_using{OPpTRANS_COMPLEMENT};
893$ops_using{OPpTRANS_IDENTICAL} = $ops_using{OPpTRANS_COMPLEMENT};
894$ops_using{OPpTRANS_SQUASH} = $ops_using{OPpTRANS_COMPLEMENT};
895$ops_using{OPpTRANS_TO_UTF} = $ops_using{OPpTRANS_COMPLEMENT};
dc1230de 896
f3574cc6 897# ex: set ro: