This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
repeat.t: Correct comment
[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
34This module provides three global hashes:
35
36 %B::Op_private::bits
37 %B::Op_private::defines
38 %B::Op_private::labels
39
40which contain information about the per-op meanings of the bits in the
41op_private field.
42
43=head2 C<%bits>
44
45This is indexed by op name and then bit number (0..7). For single bit flags,
46it returns the name of the define (if any) for that bit:
47
48 $B::Op_private::bits{aelem}{7} eq 'OPpLVAL_INTRO';
49
50For bit fields, it returns a hash ref containing details about the field.
51The same reference will be returned for all bit positions that make
52up the bit field; so for example these both return the same hash ref:
53
54 $bitfield = $B::Op_private::bits{aelem}{5};
55 $bitfield = $B::Op_private::bits{aelem}{6};
56
57The general format of this hash ref is
58
59 {
60 # The bit range and mask; these are always present.
61 bitmin => 5,
62 bitmax => 6,
63 bitmask => 0x60,
64
65 # (The remaining keys are optional)
66
67 # The names of any defines that were requested:
68 mask_def => 'OPpFOO_MASK',
69 baseshift_def => 'OPpFOO_SHIFT',
70 bitcount_def => 'OPpFOO_BITS',
71
72 # If present, Concise etc will display the value with a 'FOO='
cdb679b6
FC
73 # prefix. If it equals '-', then Concise will treat the bit
74 # field as raw bits and not try to interpret it.
f3574cc6
DM
75 label => 'FOO',
76
2febb45a
FC
77 # If present, specifies the names of some defines and the
78 # display labels that are used to assign meaning to particu-
79 # lar integer values within the bit field; e.g. 3 is dis-
80 # played as 'C'.
f3574cc6
DM
81 enum => [ qw(
82 1 OPpFOO_A A
83 2 OPpFOO_B B
84 3 OPpFOO_C C
85 )],
86
87 };
88
89
90=head2 C<%defines>
91
92This gives the value of every C<OPp> define, e.g.
93
94 $B::Op_private::defines{OPpLVAL_INTRO} == 128;
95
96=head2 C<%labels>
97
98This gives the short display label for each define, as used by C<B::Concise>
99and C<perl -Dx>, e.g.
100
101 $B::Op_private::labels{OPpLVAL_INTRO} eq 'LVINTRO';
102
103If the label equals '-', then Concise will treat the bit as a raw bit and
104not try to display it symbolically.
105
106=cut
107
108package B::Op_private;
109
110our %bits;
111
99275276 112
96cb9728 113our $VERSION = "5.021006";
99275276 114
f3574cc6 115$bits{$_}{3} = 'OPpENTERSUB_AMPER' for qw(entersub rv2cv);
9e209402 116$bits{$_}{6} = 'OPpENTERSUB_DB' for qw(entersub rv2cv);
f3574cc6
DM
117$bits{$_}{2} = 'OPpENTERSUB_HASTARG' for qw(entersub rv2cv);
118$bits{$_}{6} = 'OPpFLIP_LINENUM' for qw(flip flop);
119$bits{$_}{1} = 'OPpFT_ACCESS' for qw(fteexec fteread ftewrite ftrexec ftrread ftrwrite);
120$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);
121$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);
122$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);
123$bits{$_}{1} = 'OPpGREP_LEX' for qw(grepstart grepwhile mapstart mapwhile);
f3574cc6
DM
124$bits{$_}{1} = 'OPpHINT_STRICT_REFS' for qw(entersub rv2av rv2cv rv2gv rv2hv rv2sv);
125$bits{$_}{5} = 'OPpHUSH_VMSISH' for qw(dbstate nextstate);
126$bits{$_}{2} = 'OPpITER_REVERSED' for qw(enteriter iter);
127$bits{$_}{7} = 'OPpLVALUE' for qw(leave leaveloop);
9e209402 128$bits{$_}{6} = 'OPpLVAL_DEFER' for qw(aelem helem);
4cb21796 129$bits{$_}{7} = 'OPpLVAL_INTRO' for qw(aelem aslice cond_expr delete enteriter entersub gvsv helem hslice list lvavref lvref lvrefslice padav padhv padrange padsv pushmark refassign rv2av rv2gv rv2hv rv2sv);
6102323a 130$bits{$_}{2} = 'OPpLVREF_ELEM' for qw(lvref refassign);
5a36b2c0 131$bits{$_}{3} = 'OPpLVREF_ITER' for qw(lvref refassign);
f3574cc6 132$bits{$_}{3} = 'OPpMAYBE_LVSUB' for qw(aassign aelem aslice av2arylen helem hslice keys kvaslice kvhslice padav padhv pos rkeys rv2av rv2gv rv2hv substr vec);
9e209402 133$bits{$_}{4} = 'OPpMAYBE_TRUEBOOL' for qw(padhv rv2hv);
f3574cc6
DM
134$bits{$_}{7} = 'OPpOFFBYONE' for qw(caller runcv wantarray);
135$bits{$_}{5} = 'OPpOPEN_IN_CRLF' for qw(backtick open);
136$bits{$_}{4} = 'OPpOPEN_IN_RAW' for qw(backtick open);
137$bits{$_}{7} = 'OPpOPEN_OUT_CRLF' for qw(backtick open);
138$bits{$_}{6} = 'OPpOPEN_OUT_RAW' for qw(backtick open);
9e209402
FC
139$bits{$_}{6} = 'OPpOUR_INTRO' for qw(enteriter gvsv rv2av rv2hv rv2sv split);
140$bits{$_}{6} = 'OPpPAD_STATE' for qw(lvavref lvref padav padhv padsv pushmark refassign);
f3574cc6
DM
141$bits{$_}{7} = 'OPpPV_IS_UTF8' for qw(dump goto last next redo);
142$bits{$_}{6} = 'OPpREFCOUNTED' for qw(leave leaveeval leavesub leavesublv leavewrite);
143$bits{$_}{6} = 'OPpRUNTIME' for qw(match pushre qr subst substcont);
144$bits{$_}{2} = 'OPpSLICEWARNING' for qw(aslice hslice padav padhv rv2av rv2hv);
a9dec3fe 145$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 match mkdir modulo multiply oct ord pow push rand rename repeat right_shift rindex rmdir schomp setpgrp setpriority sin sleep split sqrt srand stringify subst subtract symlink system time trans transr unlink unshift utime vec wait waitpid);
f3574cc6
DM
146$bits{$_}{5} = 'OPpTRANS_COMPLEMENT' for qw(trans transr);
147$bits{$_}{7} = 'OPpTRANS_DELETE' for qw(trans transr);
148$bits{$_}{0} = 'OPpTRANS_FROM_UTF' for qw(trans transr);
149$bits{$_}{6} = 'OPpTRANS_GROWS' for qw(trans transr);
150$bits{$_}{2} = 'OPpTRANS_IDENTICAL' for qw(trans transr);
151$bits{$_}{3} = 'OPpTRANS_SQUASH' for qw(trans transr);
152$bits{$_}{1} = 'OPpTRANS_TO_UTF' for qw(trans transr);
153$bits{$_}{5} = 'OPpTRUEBOOL' for qw(padhv rv2hv);
154
155my @bf = (
156 {
157 label => '-',
158 mask_def => 'OPpARG1_MASK',
159 bitmin => 0,
160 bitmax => 0,
161 bitmask => 1,
162 },
163 {
164 label => '-',
165 mask_def => 'OPpARG2_MASK',
166 bitmin => 0,
167 bitmax => 1,
168 bitmask => 3,
169 },
170 {
171 label => '-',
172 mask_def => 'OPpARG3_MASK',
173 bitmin => 0,
174 bitmax => 2,
175 bitmask => 7,
176 },
177 {
178 label => '-',
179 mask_def => 'OPpARG4_MASK',
180 bitmin => 0,
181 bitmax => 3,
182 bitmask => 15,
183 },
184 {
185 label => '-',
186 mask_def => 'OPpPADRANGE_COUNTMASK',
187 bitcount_def => 'OPpPADRANGE_COUNTSHIFT',
188 bitmin => 0,
189 bitmax => 6,
190 bitmask => 127,
191 },
192 {
193 label => '-',
194 bitmin => 0,
195 bitmax => 7,
196 bitmask => 255,
197 },
198 {
199 mask_def => 'OPpDEREF',
9e209402
FC
200 bitmin => 4,
201 bitmax => 5,
202 bitmask => 48,
f3574cc6
DM
203 enum => [
204 1, 'OPpDEREF_AV', 'DREFAV',
205 2, 'OPpDEREF_HV', 'DREFHV',
206 3, 'OPpDEREF_SV', 'DREFSV',
207 ],
208 },
7aa5b458
FC
209 {
210 mask_def => 'OPpLVREF_TYPE',
9e209402
FC
211 bitmin => 4,
212 bitmax => 5,
213 bitmask => 48,
7aa5b458
FC
214 enum => [
215 0, 'OPpLVREF_SV', 'SV',
216 1, 'OPpLVREF_AV', 'AV',
217 2, 'OPpLVREF_HV', 'HV',
218 3, 'OPpLVREF_CV', 'CV',
219 ],
220 },
f3574cc6
DM
221);
222
223@{$bits{aassign}}{6,1,0} = ('OPpASSIGN_COMMON', $bf[1], $bf[1]);
224$bits{abs}{0} = $bf[0];
225@{$bits{accept}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
226@{$bits{add}}{1,0} = ($bf[1], $bf[1]);
227$bits{aeach}{0} = $bf[0];
9e209402 228@{$bits{aelem}}{5,4,1,0} = ($bf[6], $bf[6], $bf[1], $bf[1]);
f3574cc6
DM
229@{$bits{aelemfast}}{7,6,5,4,3,2,1,0} = ($bf[5], $bf[5], $bf[5], $bf[5], $bf[5], $bf[5], $bf[5], $bf[5]);
230@{$bits{aelemfast_lex}}{7,6,5,4,3,2,1,0} = ($bf[5], $bf[5], $bf[5], $bf[5], $bf[5], $bf[5], $bf[5], $bf[5]);
231$bits{akeys}{0} = $bf[0];
232$bits{alarm}{0} = $bf[0];
233$bits{and}{0} = $bf[0];
234$bits{andassign}{0} = $bf[0];
235@{$bits{anonhash}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
236@{$bits{anonlist}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
237@{$bits{atan2}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
238$bits{av2arylen}{0} = $bf[0];
239$bits{avalues}{0} = $bf[0];
240$bits{backtick}{0} = $bf[0];
241@{$bits{bind}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
242@{$bits{binmode}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
243@{$bits{bit_and}}{1,0} = ($bf[1], $bf[1]);
244@{$bits{bit_or}}{1,0} = ($bf[1], $bf[1]);
245@{$bits{bit_xor}}{1,0} = ($bf[1], $bf[1]);
246@{$bits{bless}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
247@{$bits{caller}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
248@{$bits{chdir}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
249@{$bits{chmod}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
250$bits{chomp}{0} = $bf[0];
251$bits{chop}{0} = $bf[0];
252@{$bits{chown}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
253$bits{chr}{0} = $bf[0];
254$bits{chroot}{0} = $bf[0];
255@{$bits{close}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
256$bits{closedir}{0} = $bf[0];
257$bits{complement}{0} = $bf[0];
258@{$bits{concat}}{1,0} = ($bf[1], $bf[1]);
259$bits{cond_expr}{0} = $bf[0];
260@{$bits{connect}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
261@{$bits{const}}{6,4,3,2,1} = ('OPpCONST_BARE', 'OPpCONST_ENTERED', 'OPpCONST_STRICT', 'OPpCONST_SHORTCIRCUIT', 'OPpCONST_NOVER');
262@{$bits{coreargs}}{7,6,1,0} = ('OPpCOREARGS_PUSHMARK', 'OPpCOREARGS_SCALARMOD', 'OPpCOREARGS_DEREF2', 'OPpCOREARGS_DEREF1');
263$bits{cos}{0} = $bf[0];
264@{$bits{crypt}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
265$bits{dbmclose}{0} = $bf[0];
266@{$bits{dbmopen}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
267$bits{defined}{0} = $bf[0];
268@{$bits{delete}}{6,0} = ('OPpSLICE', $bf[0]);
269@{$bits{die}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
270@{$bits{divide}}{1,0} = ($bf[1], $bf[1]);
271$bits{dofile}{0} = $bf[0];
272$bits{dor}{0} = $bf[0];
273$bits{dorassign}{0} = $bf[0];
274$bits{dump}{0} = $bf[0];
275$bits{each}{0} = $bf[0];
276@{$bits{entereval}}{5,4,3,2,1,0} = ('OPpEVAL_RE_REPARSING', 'OPpEVAL_COPHH', 'OPpEVAL_BYTES', 'OPpEVAL_UNICODE', 'OPpEVAL_HAS_HH', $bf[0]);
277$bits{entergiven}{0} = $bf[0];
278$bits{enteriter}{3} = 'OPpITER_DEF';
9e209402 279@{$bits{entersub}}{5,4,0} = ($bf[6], $bf[6], 'OPpENTERSUB_INARGS');
f3574cc6
DM
280$bits{entertry}{0} = $bf[0];
281$bits{enterwhen}{0} = $bf[0];
282@{$bits{enterwrite}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
283@{$bits{eof}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
284@{$bits{eq}}{1,0} = ($bf[1], $bf[1]);
285@{$bits{exec}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
286@{$bits{exists}}{6,0} = ('OPpEXISTS_SUB', $bf[0]);
287@{$bits{exit}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
288$bits{exp}{0} = $bf[0];
289$bits{fc}{0} = $bf[0];
290@{$bits{fcntl}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
291@{$bits{fileno}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
292$bits{flip}{0} = $bf[0];
293@{$bits{flock}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
294$bits{flop}{0} = $bf[0];
295@{$bits{formline}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
296$bits{ftatime}{0} = $bf[0];
297$bits{ftbinary}{0} = $bf[0];
298$bits{ftblk}{0} = $bf[0];
299$bits{ftchr}{0} = $bf[0];
300$bits{ftctime}{0} = $bf[0];
301$bits{ftdir}{0} = $bf[0];
302$bits{fteexec}{0} = $bf[0];
303$bits{fteowned}{0} = $bf[0];
304$bits{fteread}{0} = $bf[0];
305$bits{ftewrite}{0} = $bf[0];
306$bits{ftfile}{0} = $bf[0];
307$bits{ftis}{0} = $bf[0];
308$bits{ftlink}{0} = $bf[0];
309$bits{ftmtime}{0} = $bf[0];
310$bits{ftpipe}{0} = $bf[0];
311$bits{ftrexec}{0} = $bf[0];
312$bits{ftrowned}{0} = $bf[0];
313$bits{ftrread}{0} = $bf[0];
314$bits{ftrwrite}{0} = $bf[0];
315$bits{ftsgid}{0} = $bf[0];
316$bits{ftsize}{0} = $bf[0];
317$bits{ftsock}{0} = $bf[0];
318$bits{ftsuid}{0} = $bf[0];
319$bits{ftsvtx}{0} = $bf[0];
320$bits{fttext}{0} = $bf[0];
321$bits{fttty}{0} = $bf[0];
322$bits{ftzero}{0} = $bf[0];
323@{$bits{ge}}{1,0} = ($bf[1], $bf[1]);
324@{$bits{gelem}}{1,0} = ($bf[1], $bf[1]);
325@{$bits{getc}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
326$bits{getpeername}{0} = $bf[0];
327@{$bits{getpgrp}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
328@{$bits{getpriority}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
329$bits{getsockname}{0} = $bf[0];
330$bits{ggrgid}{0} = $bf[0];
331$bits{ggrnam}{0} = $bf[0];
332@{$bits{ghbyaddr}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
333$bits{ghbyname}{0} = $bf[0];
334@{$bits{glob}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
335@{$bits{gmtime}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
336@{$bits{gnbyaddr}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
337$bits{gnbyname}{0} = $bf[0];
338$bits{goto}{0} = $bf[0];
339$bits{gpbyname}{0} = $bf[0];
340@{$bits{gpbynumber}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
341$bits{gpwnam}{0} = $bf[0];
342$bits{gpwuid}{0} = $bf[0];
343$bits{grepwhile}{0} = $bf[0];
344@{$bits{gsbyname}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
345@{$bits{gsbyport}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
346@{$bits{gsockopt}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
347@{$bits{gt}}{1,0} = ($bf[1], $bf[1]);
348$bits{gv}{5} = 'OPpEARLY_CV';
9e209402 349@{$bits{helem}}{5,4,1,0} = ($bf[6], $bf[6], $bf[1], $bf[1]);
f3574cc6
DM
350$bits{hex}{0} = $bf[0];
351@{$bits{i_add}}{1,0} = ($bf[1], $bf[1]);
352@{$bits{i_divide}}{1,0} = ($bf[1], $bf[1]);
353@{$bits{i_eq}}{1,0} = ($bf[1], $bf[1]);
354@{$bits{i_ge}}{1,0} = ($bf[1], $bf[1]);
355@{$bits{i_gt}}{1,0} = ($bf[1], $bf[1]);
356@{$bits{i_le}}{1,0} = ($bf[1], $bf[1]);
357@{$bits{i_lt}}{1,0} = ($bf[1], $bf[1]);
358@{$bits{i_modulo}}{1,0} = ($bf[1], $bf[1]);
359@{$bits{i_multiply}}{1,0} = ($bf[1], $bf[1]);
360@{$bits{i_ncmp}}{1,0} = ($bf[1], $bf[1]);
361@{$bits{i_ne}}{1,0} = ($bf[1], $bf[1]);
362$bits{i_negate}{0} = $bf[0];
363$bits{i_postdec}{0} = $bf[0];
364$bits{i_postinc}{0} = $bf[0];
365$bits{i_predec}{0} = $bf[0];
366$bits{i_preinc}{0} = $bf[0];
367@{$bits{i_subtract}}{1,0} = ($bf[1], $bf[1]);
368@{$bits{index}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
369$bits{int}{0} = $bf[0];
370@{$bits{ioctl}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
371@{$bits{join}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
372$bits{keys}{0} = $bf[0];
373@{$bits{kill}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
374$bits{last}{0} = $bf[0];
375$bits{lc}{0} = $bf[0];
376$bits{lcfirst}{0} = $bf[0];
377@{$bits{le}}{1,0} = ($bf[1], $bf[1]);
378$bits{leaveeval}{0} = $bf[0];
379$bits{leavegiven}{0} = $bf[0];
380@{$bits{leaveloop}}{1,0} = ($bf[1], $bf[1]);
381$bits{leavesub}{0} = $bf[0];
382$bits{leavesublv}{0} = $bf[0];
383$bits{leavewhen}{0} = $bf[0];
384$bits{leavewrite}{0} = $bf[0];
385@{$bits{left_shift}}{1,0} = ($bf[1], $bf[1]);
386$bits{length}{0} = $bf[0];
387@{$bits{link}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
388$bits{list}{6} = 'OPpLIST_GUESSED';
389@{$bits{listen}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
390$bits{localtime}{0} = $bf[0];
391$bits{lock}{0} = $bf[0];
392$bits{log}{0} = $bf[0];
393@{$bits{lslice}}{1,0} = ($bf[1], $bf[1]);
394$bits{lstat}{0} = $bf[0];
395@{$bits{lt}}{1,0} = ($bf[1], $bf[1]);
2882b3ff 396$bits{lvavref}{0} = $bf[0];
9e209402 397@{$bits{lvref}}{5,4,0} = ($bf[7], $bf[7], $bf[0]);
f3574cc6
DM
398$bits{mapwhile}{0} = $bf[0];
399$bits{method}{0} = $bf[0];
b46e009d 400$bits{method_named}{0} = $bf[0];
f3574cc6
DM
401@{$bits{mkdir}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
402@{$bits{modulo}}{1,0} = ($bf[1], $bf[1]);
403@{$bits{msgctl}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
404@{$bits{msgget}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
405@{$bits{msgrcv}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
406@{$bits{msgsnd}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
407@{$bits{multiply}}{1,0} = ($bf[1], $bf[1]);
408@{$bits{ncmp}}{1,0} = ($bf[1], $bf[1]);
409@{$bits{ne}}{1,0} = ($bf[1], $bf[1]);
410$bits{negate}{0} = $bf[0];
411$bits{next}{0} = $bf[0];
412$bits{not}{0} = $bf[0];
413$bits{oct}{0} = $bf[0];
414$bits{once}{0} = $bf[0];
415@{$bits{open}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
416@{$bits{open_dir}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
417$bits{or}{0} = $bf[0];
418$bits{orassign}{0} = $bf[0];
419$bits{ord}{0} = $bf[0];
420@{$bits{pack}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
421@{$bits{padrange}}{6,5,4,3,2,1,0} = ($bf[4], $bf[4], $bf[4], $bf[4], $bf[4], $bf[4], $bf[4]);
9e209402 422@{$bits{padsv}}{5,4} = ($bf[6], $bf[6]);
f3574cc6
DM
423@{$bits{pipe_op}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
424$bits{pop}{0} = $bf[0];
425$bits{pos}{0} = $bf[0];
426$bits{postdec}{0} = $bf[0];
427$bits{postinc}{0} = $bf[0];
428@{$bits{pow}}{1,0} = ($bf[1], $bf[1]);
429$bits{predec}{0} = $bf[0];
430$bits{preinc}{0} = $bf[0];
431$bits{prototype}{0} = $bf[0];
432@{$bits{push}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
433$bits{quotemeta}{0} = $bf[0];
434@{$bits{rand}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
435$bits{range}{0} = $bf[0];
436$bits{reach}{0} = $bf[0];
437@{$bits{read}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
438$bits{readdir}{0} = $bf[0];
439$bits{readline}{0} = $bf[0];
440$bits{readlink}{0} = $bf[0];
441@{$bits{recv}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
442$bits{redo}{0} = $bf[0];
443$bits{ref}{0} = $bf[0];
9e209402 444@{$bits{refassign}}{5,4,1,0} = ($bf[7], $bf[7], $bf[1], $bf[1]);
f3574cc6
DM
445$bits{refgen}{0} = $bf[0];
446$bits{regcmaybe}{0} = $bf[0];
447$bits{regcomp}{0} = $bf[0];
448$bits{regcreset}{0} = $bf[0];
449@{$bits{rename}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
450@{$bits{repeat}}{6,1,0} = ('OPpREPEAT_DOLIST', $bf[1], $bf[1]);
451$bits{require}{0} = $bf[0];
452@{$bits{reset}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
453@{$bits{reverse}}{3,0} = ('OPpREVERSE_INPLACE', $bf[0]);
454$bits{rewinddir}{0} = $bf[0];
455@{$bits{right_shift}}{1,0} = ($bf[1], $bf[1]);
456@{$bits{rindex}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
457$bits{rkeys}{0} = $bf[0];
458$bits{rmdir}{0} = $bf[0];
459$bits{rv2av}{0} = $bf[0];
9e209402
FC
460@{$bits{rv2cv}}{7,5,0} = ('OPpENTERSUB_NOPAREN', 'OPpMAY_RETURN_CONSTANT', $bf[0]);
461@{$bits{rv2gv}}{6,5,4,2,0} = ('OPpALLOW_FAKE', $bf[6], $bf[6], 'OPpDONT_INIT_GV', $bf[0]);
f3574cc6 462$bits{rv2hv}{0} = $bf[0];
9e209402 463@{$bits{rv2sv}}{5,4,0} = ($bf[6], $bf[6], $bf[0]);
f3574cc6
DM
464$bits{rvalues}{0} = $bf[0];
465@{$bits{sassign}}{7,6,1,0} = ('OPpASSIGN_CV_TO_GV', 'OPpASSIGN_BACKWARDS', $bf[1], $bf[1]);
466$bits{scalar}{0} = $bf[0];
467$bits{schomp}{0} = $bf[0];
468$bits{schop}{0} = $bf[0];
469@{$bits{scmp}}{1,0} = ($bf[1], $bf[1]);
470@{$bits{seek}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
471@{$bits{seekdir}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
472@{$bits{select}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
473@{$bits{semctl}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
474@{$bits{semget}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
475@{$bits{semop}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
476@{$bits{send}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
477@{$bits{seq}}{1,0} = ($bf[1], $bf[1]);
478@{$bits{setpgrp}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
479@{$bits{setpriority}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
480@{$bits{sge}}{1,0} = ($bf[1], $bf[1]);
481@{$bits{sgt}}{1,0} = ($bf[1], $bf[1]);
482$bits{shift}{0} = $bf[0];
483@{$bits{shmctl}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
484@{$bits{shmget}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
485@{$bits{shmread}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
486@{$bits{shmwrite}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
487$bits{shostent}{0} = $bf[0];
488@{$bits{shutdown}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
489$bits{sin}{0} = $bf[0];
490@{$bits{sle}}{1,0} = ($bf[1], $bf[1]);
491@{$bits{sleep}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
492@{$bits{slt}}{1,0} = ($bf[1], $bf[1]);
493@{$bits{smartmatch}}{1,0} = ($bf[1], $bf[1]);
494@{$bits{sne}}{1,0} = ($bf[1], $bf[1]);
495$bits{snetent}{0} = $bf[0];
496@{$bits{socket}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
497@{$bits{sockpair}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
498@{$bits{sort}}{6,5,4,3,2,1,0} = ('OPpSORT_STABLE', 'OPpSORT_QSORT', 'OPpSORT_DESCEND', 'OPpSORT_INPLACE', 'OPpSORT_REVERSE', 'OPpSORT_INTEGER', 'OPpSORT_NUMERIC');
499@{$bits{splice}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
500$bits{split}{7} = 'OPpSPLIT_IMPLIM';
501@{$bits{sprintf}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
502$bits{sprotoent}{0} = $bf[0];
503$bits{sqrt}{0} = $bf[0];
504@{$bits{srand}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
505$bits{srefgen}{0} = $bf[0];
506@{$bits{sselect}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
507$bits{sservent}{0} = $bf[0];
508@{$bits{ssockopt}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
509$bits{stat}{0} = $bf[0];
510@{$bits{stringify}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
511$bits{study}{0} = $bf[0];
512$bits{substcont}{0} = $bf[0];
513@{$bits{substr}}{4,2,1,0} = ('OPpSUBSTR_REPL_FIRST', $bf[2], $bf[2], $bf[2]);
514@{$bits{subtract}}{1,0} = ($bf[1], $bf[1]);
515@{$bits{symlink}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
516@{$bits{syscall}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
517@{$bits{sysopen}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
518@{$bits{sysread}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
519@{$bits{sysseek}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
520@{$bits{system}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
521@{$bits{syswrite}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
522@{$bits{tell}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
523$bits{telldir}{0} = $bf[0];
524@{$bits{tie}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
525$bits{tied}{0} = $bf[0];
526@{$bits{truncate}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
527$bits{uc}{0} = $bf[0];
528$bits{ucfirst}{0} = $bf[0];
529@{$bits{umask}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
530$bits{undef}{0} = $bf[0];
531@{$bits{unlink}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
532@{$bits{unpack}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
533@{$bits{unshift}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
534$bits{untie}{0} = $bf[0];
535@{$bits{utime}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
536$bits{values}{0} = $bf[0];
537@{$bits{vec}}{1,0} = ($bf[1], $bf[1]);
538@{$bits{waitpid}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
539@{$bits{warn}}{3,2,1,0} = ($bf[3], $bf[3], $bf[3], $bf[3]);
540@{$bits{xor}}{1,0} = ($bf[1], $bf[1]);
541
542
543our %defines = (
9e209402 544 OPpALLOW_FAKE => 64,
f3574cc6
DM
545 OPpARG1_MASK => 1,
546 OPpARG2_MASK => 3,
547 OPpARG3_MASK => 7,
548 OPpARG4_MASK => 15,
549 OPpASSIGN_BACKWARDS => 64,
550 OPpASSIGN_COMMON => 64,
551 OPpASSIGN_CV_TO_GV => 128,
552 OPpCONST_BARE => 64,
553 OPpCONST_ENTERED => 16,
554 OPpCONST_NOVER => 2,
555 OPpCONST_SHORTCIRCUIT => 4,
556 OPpCONST_STRICT => 8,
557 OPpCOREARGS_DEREF1 => 1,
558 OPpCOREARGS_DEREF2 => 2,
559 OPpCOREARGS_PUSHMARK => 128,
560 OPpCOREARGS_SCALARMOD => 64,
9e209402
FC
561 OPpDEREF => 48,
562 OPpDEREF_AV => 16,
563 OPpDEREF_HV => 32,
564 OPpDEREF_SV => 48,
f3574cc6
DM
565 OPpDONT_INIT_GV => 4,
566 OPpEARLY_CV => 32,
567 OPpENTERSUB_AMPER => 8,
9e209402 568 OPpENTERSUB_DB => 64,
f3574cc6
DM
569 OPpENTERSUB_HASTARG => 4,
570 OPpENTERSUB_INARGS => 1,
571 OPpENTERSUB_NOPAREN => 128,
572 OPpEVAL_BYTES => 8,
573 OPpEVAL_COPHH => 16,
574 OPpEVAL_HAS_HH => 2,
575 OPpEVAL_RE_REPARSING => 32,
576 OPpEVAL_UNICODE => 4,
577 OPpEXISTS_SUB => 64,
578 OPpFLIP_LINENUM => 64,
579 OPpFT_ACCESS => 2,
580 OPpFT_AFTER_t => 16,
581 OPpFT_STACKED => 4,
582 OPpFT_STACKING => 8,
583 OPpGREP_LEX => 2,
f3574cc6
DM
584 OPpHINT_STRICT_REFS => 2,
585 OPpHUSH_VMSISH => 32,
586 OPpITER_DEF => 8,
587 OPpITER_REVERSED => 4,
588 OPpLIST_GUESSED => 64,
589 OPpLVALUE => 128,
9e209402 590 OPpLVAL_DEFER => 64,
f3574cc6 591 OPpLVAL_INTRO => 128,
9e209402
FC
592 OPpLVREF_AV => 16,
593 OPpLVREF_CV => 48,
6102323a 594 OPpLVREF_ELEM => 4,
9e209402 595 OPpLVREF_HV => 32,
5a36b2c0 596 OPpLVREF_ITER => 8,
c2380ea1 597 OPpLVREF_SV => 0,
9e209402 598 OPpLVREF_TYPE => 48,
f3574cc6 599 OPpMAYBE_LVSUB => 8,
9e209402
FC
600 OPpMAYBE_TRUEBOOL => 16,
601 OPpMAY_RETURN_CONSTANT => 32,
f3574cc6
DM
602 OPpOFFBYONE => 128,
603 OPpOPEN_IN_CRLF => 32,
604 OPpOPEN_IN_RAW => 16,
605 OPpOPEN_OUT_CRLF => 128,
606 OPpOPEN_OUT_RAW => 64,
9e209402 607 OPpOUR_INTRO => 64,
f3574cc6
DM
608 OPpPADRANGE_COUNTMASK => 127,
609 OPpPADRANGE_COUNTSHIFT => 7,
9e209402 610 OPpPAD_STATE => 64,
f3574cc6
DM
611 OPpPV_IS_UTF8 => 128,
612 OPpREFCOUNTED => 64,
613 OPpREPEAT_DOLIST => 64,
614 OPpREVERSE_INPLACE => 8,
615 OPpRUNTIME => 64,
616 OPpSLICE => 64,
617 OPpSLICEWARNING => 4,
618 OPpSORT_DESCEND => 16,
619 OPpSORT_INPLACE => 8,
620 OPpSORT_INTEGER => 2,
621 OPpSORT_NUMERIC => 1,
622 OPpSORT_QSORT => 32,
623 OPpSORT_REVERSE => 4,
624 OPpSORT_STABLE => 64,
625 OPpSPLIT_IMPLIM => 128,
626 OPpSUBSTR_REPL_FIRST => 16,
627 OPpTARGET_MY => 16,
628 OPpTRANS_COMPLEMENT => 32,
629 OPpTRANS_DELETE => 128,
630 OPpTRANS_FROM_UTF => 1,
631 OPpTRANS_GROWS => 64,
632 OPpTRANS_IDENTICAL => 4,
633 OPpTRANS_SQUASH => 8,
634 OPpTRANS_TO_UTF => 2,
635 OPpTRUEBOOL => 32,
636);
637
638our %labels = (
639 OPpALLOW_FAKE => 'FAKE',
640 OPpASSIGN_BACKWARDS => 'BKWARD',
641 OPpASSIGN_COMMON => 'COMMON',
642 OPpASSIGN_CV_TO_GV => 'CV2GV',
643 OPpCONST_BARE => 'BARE',
644 OPpCONST_ENTERED => 'ENTERED',
645 OPpCONST_NOVER => 'NOVER',
646 OPpCONST_SHORTCIRCUIT => 'SHORT',
647 OPpCONST_STRICT => 'STRICT',
648 OPpCOREARGS_DEREF1 => 'DEREF1',
649 OPpCOREARGS_DEREF2 => 'DEREF2',
650 OPpCOREARGS_PUSHMARK => 'MARK',
651 OPpCOREARGS_SCALARMOD => '$MOD',
652 OPpDEREF_AV => 'DREFAV',
653 OPpDEREF_HV => 'DREFHV',
654 OPpDEREF_SV => 'DREFSV',
655 OPpDONT_INIT_GV => 'NOINIT',
656 OPpEARLY_CV => 'EARLYCV',
657 OPpENTERSUB_AMPER => 'AMPER',
658 OPpENTERSUB_DB => 'DBG',
659 OPpENTERSUB_HASTARG => 'TARG',
660 OPpENTERSUB_INARGS => 'INARGS',
661 OPpENTERSUB_NOPAREN => 'NO()',
662 OPpEVAL_BYTES => 'BYTES',
663 OPpEVAL_COPHH => 'COPHH',
664 OPpEVAL_HAS_HH => 'HAS_HH',
c486bd5c 665 OPpEVAL_RE_REPARSING => 'REPARSE',
f3574cc6
DM
666 OPpEVAL_UNICODE => 'UNI',
667 OPpEXISTS_SUB => 'SUB',
668 OPpFLIP_LINENUM => 'LINENUM',
669 OPpFT_ACCESS => 'FTACCESS',
670 OPpFT_AFTER_t => 'FTAFTERt',
671 OPpFT_STACKED => 'FTSTACKED',
672 OPpFT_STACKING => 'FTSTACKING',
673 OPpGREP_LEX => 'GREPLEX',
c486bd5c 674 OPpHINT_STRICT_REFS => 'STRICT',
f3574cc6 675 OPpHUSH_VMSISH => 'HUSH',
c486bd5c 676 OPpITER_DEF => 'DEF',
f3574cc6
DM
677 OPpITER_REVERSED => 'REVERSED',
678 OPpLIST_GUESSED => 'GUESSED',
679 OPpLVALUE => 'LV',
680 OPpLVAL_DEFER => 'LVDEFER',
681 OPpLVAL_INTRO => 'LVINTRO',
c2380ea1
FC
682 OPpLVREF_AV => 'AV',
683 OPpLVREF_CV => 'CV',
6102323a 684 OPpLVREF_ELEM => 'ELEM',
c2380ea1 685 OPpLVREF_HV => 'HV',
5a36b2c0 686 OPpLVREF_ITER => 'ITER',
c2380ea1 687 OPpLVREF_SV => 'SV',
f3574cc6
DM
688 OPpMAYBE_LVSUB => 'LVSUB',
689 OPpMAYBE_TRUEBOOL => 'BOOL?',
690 OPpMAY_RETURN_CONSTANT => 'CONST',
691 OPpOFFBYONE => '+1',
692 OPpOPEN_IN_CRLF => 'INCR',
693 OPpOPEN_IN_RAW => 'INBIN',
694 OPpOPEN_OUT_CRLF => 'OUTCR',
695 OPpOPEN_OUT_RAW => 'OUTBIN',
696 OPpOUR_INTRO => 'OURINTR',
697 OPpPAD_STATE => 'STATE',
698 OPpPV_IS_UTF8 => 'UTF',
699 OPpREFCOUNTED => 'REFC',
700 OPpREPEAT_DOLIST => 'DOLIST',
701 OPpREVERSE_INPLACE => 'INPLACE',
702 OPpRUNTIME => 'RTIME',
703 OPpSLICE => 'SLICE',
704 OPpSLICEWARNING => 'SLICEWARN',
705 OPpSORT_DESCEND => 'DESC',
706 OPpSORT_INPLACE => 'INPLACE',
707 OPpSORT_INTEGER => 'INT',
708 OPpSORT_NUMERIC => 'NUM',
709 OPpSORT_QSORT => 'QSORT',
710 OPpSORT_REVERSE => 'REV',
711 OPpSORT_STABLE => 'STABLE',
712 OPpSPLIT_IMPLIM => 'IMPLIM',
713 OPpSUBSTR_REPL_FIRST => 'REPL1ST',
714 OPpTARGET_MY => 'TARGMY',
715 OPpTRANS_COMPLEMENT => 'COMPL',
716 OPpTRANS_DELETE => 'DEL',
717 OPpTRANS_FROM_UTF => '<UTF',
718 OPpTRANS_GROWS => 'GROWS',
719 OPpTRANS_IDENTICAL => 'IDENT',
720 OPpTRANS_SQUASH => 'SQUASH',
721 OPpTRANS_TO_UTF => '>UTF',
722 OPpTRUEBOOL => 'BOOL',
723);
724
725# ex: set ro: