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