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