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