Fix bug in inlining some CORE::* subs
[perl.git] / opnames.h
1 /* -*- buffer-read-only: t -*-
2  *
3  *    opnames.h
4  *
5  *    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
6  *    2008 by Larry Wall and others
7  *
8  *    You may distribute under the terms of either the GNU General Public
9  *    License or the Artistic License, as specified in the README file.
10  *
11  * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
12  * This file is built by regen/opcode.pl from its data.
13  * Any changes made here will be lost!
14  */
15
16 typedef enum opcode {
17         OP_NULL          = 0,
18         OP_STUB          = 1,
19         OP_SCALAR        = 2,
20         OP_PUSHMARK      = 3,
21         OP_WANTARRAY     = 4,
22         OP_CONST         = 5,
23         OP_GVSV          = 6,
24         OP_GV            = 7,
25         OP_GELEM         = 8,
26         OP_PADSV         = 9,
27         OP_PADAV         = 10,
28         OP_PADHV         = 11,
29         OP_PADANY        = 12,
30         OP_PUSHRE        = 13,
31         OP_RV2GV         = 14,
32         OP_RV2SV         = 15,
33         OP_AV2ARYLEN     = 16,
34         OP_RV2CV         = 17,
35         OP_ANONCODE      = 18,
36         OP_PROTOTYPE     = 19,
37         OP_REFGEN        = 20,
38         OP_SREFGEN       = 21,
39         OP_REF           = 22,
40         OP_BLESS         = 23,
41         OP_BACKTICK      = 24,
42         OP_GLOB          = 25,
43         OP_READLINE      = 26,
44         OP_RCATLINE      = 27,
45         OP_REGCMAYBE     = 28,
46         OP_REGCRESET     = 29,
47         OP_REGCOMP       = 30,
48         OP_MATCH         = 31,
49         OP_QR            = 32,
50         OP_SUBST         = 33,
51         OP_SUBSTCONT     = 34,
52         OP_TRANS         = 35,
53         OP_TRANSR        = 36,
54         OP_SASSIGN       = 37,
55         OP_AASSIGN       = 38,
56         OP_CHOP          = 39,
57         OP_SCHOP         = 40,
58         OP_CHOMP         = 41,
59         OP_SCHOMP        = 42,
60         OP_DEFINED       = 43,
61         OP_UNDEF         = 44,
62         OP_STUDY         = 45,
63         OP_POS           = 46,
64         OP_PREINC        = 47,
65         OP_I_PREINC      = 48,
66         OP_PREDEC        = 49,
67         OP_I_PREDEC      = 50,
68         OP_POSTINC       = 51,
69         OP_I_POSTINC     = 52,
70         OP_POSTDEC       = 53,
71         OP_I_POSTDEC     = 54,
72         OP_POW           = 55,
73         OP_MULTIPLY      = 56,
74         OP_I_MULTIPLY    = 57,
75         OP_DIVIDE        = 58,
76         OP_I_DIVIDE      = 59,
77         OP_MODULO        = 60,
78         OP_I_MODULO      = 61,
79         OP_REPEAT        = 62,
80         OP_ADD           = 63,
81         OP_I_ADD         = 64,
82         OP_SUBTRACT      = 65,
83         OP_I_SUBTRACT    = 66,
84         OP_CONCAT        = 67,
85         OP_STRINGIFY     = 68,
86         OP_LEFT_SHIFT    = 69,
87         OP_RIGHT_SHIFT   = 70,
88         OP_LT            = 71,
89         OP_I_LT          = 72,
90         OP_GT            = 73,
91         OP_I_GT          = 74,
92         OP_LE            = 75,
93         OP_I_LE          = 76,
94         OP_GE            = 77,
95         OP_I_GE          = 78,
96         OP_EQ            = 79,
97         OP_I_EQ          = 80,
98         OP_NE            = 81,
99         OP_I_NE          = 82,
100         OP_NCMP          = 83,
101         OP_I_NCMP        = 84,
102         OP_SLT           = 85,
103         OP_SGT           = 86,
104         OP_SLE           = 87,
105         OP_SGE           = 88,
106         OP_SEQ           = 89,
107         OP_SNE           = 90,
108         OP_SCMP          = 91,
109         OP_BIT_AND       = 92,
110         OP_BIT_XOR       = 93,
111         OP_BIT_OR        = 94,
112         OP_NEGATE        = 95,
113         OP_I_NEGATE      = 96,
114         OP_NOT           = 97,
115         OP_COMPLEMENT    = 98,
116         OP_SMARTMATCH    = 99,
117         OP_ATAN2         = 100,
118         OP_SIN           = 101,
119         OP_COS           = 102,
120         OP_RAND          = 103,
121         OP_SRAND         = 104,
122         OP_EXP           = 105,
123         OP_LOG           = 106,
124         OP_SQRT          = 107,
125         OP_INT           = 108,
126         OP_HEX           = 109,
127         OP_OCT           = 110,
128         OP_ABS           = 111,
129         OP_LENGTH        = 112,
130         OP_SUBSTR        = 113,
131         OP_VEC           = 114,
132         OP_INDEX         = 115,
133         OP_RINDEX        = 116,
134         OP_SPRINTF       = 117,
135         OP_FORMLINE      = 118,
136         OP_ORD           = 119,
137         OP_CHR           = 120,
138         OP_CRYPT         = 121,
139         OP_UCFIRST       = 122,
140         OP_LCFIRST       = 123,
141         OP_UC            = 124,
142         OP_LC            = 125,
143         OP_QUOTEMETA     = 126,
144         OP_RV2AV         = 127,
145         OP_AELEMFAST     = 128,
146         OP_AELEMFAST_LEX = 129,
147         OP_AELEM         = 130,
148         OP_ASLICE        = 131,
149         OP_KVASLICE      = 132,
150         OP_AEACH         = 133,
151         OP_AKEYS         = 134,
152         OP_AVALUES       = 135,
153         OP_EACH          = 136,
154         OP_VALUES        = 137,
155         OP_KEYS          = 138,
156         OP_DELETE        = 139,
157         OP_EXISTS        = 140,
158         OP_RV2HV         = 141,
159         OP_HELEM         = 142,
160         OP_HSLICE        = 143,
161         OP_KVHSLICE      = 144,
162         OP_UNPACK        = 145,
163         OP_PACK          = 146,
164         OP_SPLIT         = 147,
165         OP_JOIN          = 148,
166         OP_LIST          = 149,
167         OP_LSLICE        = 150,
168         OP_ANONLIST      = 151,
169         OP_ANONHASH      = 152,
170         OP_SPLICE        = 153,
171         OP_PUSH          = 154,
172         OP_POP           = 155,
173         OP_SHIFT         = 156,
174         OP_UNSHIFT       = 157,
175         OP_SORT          = 158,
176         OP_REVERSE       = 159,
177         OP_GREPSTART     = 160,
178         OP_GREPWHILE     = 161,
179         OP_MAPSTART      = 162,
180         OP_MAPWHILE      = 163,
181         OP_RANGE         = 164,
182         OP_FLIP          = 165,
183         OP_FLOP          = 166,
184         OP_AND           = 167,
185         OP_OR            = 168,
186         OP_XOR           = 169,
187         OP_DOR           = 170,
188         OP_COND_EXPR     = 171,
189         OP_ANDASSIGN     = 172,
190         OP_ORASSIGN      = 173,
191         OP_DORASSIGN     = 174,
192         OP_METHOD        = 175,
193         OP_ENTERSUB      = 176,
194         OP_LEAVESUB      = 177,
195         OP_LEAVESUBLV    = 178,
196         OP_CALLER        = 179,
197         OP_WARN          = 180,
198         OP_DIE           = 181,
199         OP_RESET         = 182,
200         OP_LINESEQ       = 183,
201         OP_NEXTSTATE     = 184,
202         OP_DBSTATE       = 185,
203         OP_UNSTACK       = 186,
204         OP_ENTER         = 187,
205         OP_LEAVE         = 188,
206         OP_SCOPE         = 189,
207         OP_ENTERITER     = 190,
208         OP_ITER          = 191,
209         OP_ENTERLOOP     = 192,
210         OP_LEAVELOOP     = 193,
211         OP_RETURN        = 194,
212         OP_LAST          = 195,
213         OP_NEXT          = 196,
214         OP_REDO          = 197,
215         OP_DUMP          = 198,
216         OP_GOTO          = 199,
217         OP_EXIT          = 200,
218         OP_METHOD_NAMED  = 201,
219         OP_ENTERGIVEN    = 202,
220         OP_LEAVEGIVEN    = 203,
221         OP_ENTERWHEN     = 204,
222         OP_LEAVEWHEN     = 205,
223         OP_BREAK         = 206,
224         OP_CONTINUE      = 207,
225         OP_OPEN          = 208,
226         OP_CLOSE         = 209,
227         OP_PIPE_OP       = 210,
228         OP_FILENO        = 211,
229         OP_UMASK         = 212,
230         OP_BINMODE       = 213,
231         OP_TIE           = 214,
232         OP_UNTIE         = 215,
233         OP_TIED          = 216,
234         OP_DBMOPEN       = 217,
235         OP_DBMCLOSE      = 218,
236         OP_SSELECT       = 219,
237         OP_SELECT        = 220,
238         OP_GETC          = 221,
239         OP_READ          = 222,
240         OP_ENTERWRITE    = 223,
241         OP_LEAVEWRITE    = 224,
242         OP_PRTF          = 225,
243         OP_PRINT         = 226,
244         OP_SAY           = 227,
245         OP_SYSOPEN       = 228,
246         OP_SYSSEEK       = 229,
247         OP_SYSREAD       = 230,
248         OP_SYSWRITE      = 231,
249         OP_EOF           = 232,
250         OP_TELL          = 233,
251         OP_SEEK          = 234,
252         OP_TRUNCATE      = 235,
253         OP_FCNTL         = 236,
254         OP_IOCTL         = 237,
255         OP_FLOCK         = 238,
256         OP_SEND          = 239,
257         OP_RECV          = 240,
258         OP_SOCKET        = 241,
259         OP_SOCKPAIR      = 242,
260         OP_BIND          = 243,
261         OP_CONNECT       = 244,
262         OP_LISTEN        = 245,
263         OP_ACCEPT        = 246,
264         OP_SHUTDOWN      = 247,
265         OP_GSOCKOPT      = 248,
266         OP_SSOCKOPT      = 249,
267         OP_GETSOCKNAME   = 250,
268         OP_GETPEERNAME   = 251,
269         OP_LSTAT         = 252,
270         OP_STAT          = 253,
271         OP_FTRREAD       = 254,
272         OP_FTRWRITE      = 255,
273         OP_FTREXEC       = 256,
274         OP_FTEREAD       = 257,
275         OP_FTEWRITE      = 258,
276         OP_FTEEXEC       = 259,
277         OP_FTIS          = 260,
278         OP_FTSIZE        = 261,
279         OP_FTMTIME       = 262,
280         OP_FTATIME       = 263,
281         OP_FTCTIME       = 264,
282         OP_FTROWNED      = 265,
283         OP_FTEOWNED      = 266,
284         OP_FTZERO        = 267,
285         OP_FTSOCK        = 268,
286         OP_FTCHR         = 269,
287         OP_FTBLK         = 270,
288         OP_FTFILE        = 271,
289         OP_FTDIR         = 272,
290         OP_FTPIPE        = 273,
291         OP_FTSUID        = 274,
292         OP_FTSGID        = 275,
293         OP_FTSVTX        = 276,
294         OP_FTLINK        = 277,
295         OP_FTTTY         = 278,
296         OP_FTTEXT        = 279,
297         OP_FTBINARY      = 280,
298         OP_CHDIR         = 281,
299         OP_CHOWN         = 282,
300         OP_CHROOT        = 283,
301         OP_UNLINK        = 284,
302         OP_CHMOD         = 285,
303         OP_UTIME         = 286,
304         OP_RENAME        = 287,
305         OP_LINK          = 288,
306         OP_SYMLINK       = 289,
307         OP_READLINK      = 290,
308         OP_MKDIR         = 291,
309         OP_RMDIR         = 292,
310         OP_OPEN_DIR      = 293,
311         OP_READDIR       = 294,
312         OP_TELLDIR       = 295,
313         OP_SEEKDIR       = 296,
314         OP_REWINDDIR     = 297,
315         OP_CLOSEDIR      = 298,
316         OP_FORK          = 299,
317         OP_WAIT          = 300,
318         OP_WAITPID       = 301,
319         OP_SYSTEM        = 302,
320         OP_EXEC          = 303,
321         OP_KILL          = 304,
322         OP_GETPPID       = 305,
323         OP_GETPGRP       = 306,
324         OP_SETPGRP       = 307,
325         OP_GETPRIORITY   = 308,
326         OP_SETPRIORITY   = 309,
327         OP_TIME          = 310,
328         OP_TMS           = 311,
329         OP_LOCALTIME     = 312,
330         OP_GMTIME        = 313,
331         OP_ALARM         = 314,
332         OP_SLEEP         = 315,
333         OP_SHMGET        = 316,
334         OP_SHMCTL        = 317,
335         OP_SHMREAD       = 318,
336         OP_SHMWRITE      = 319,
337         OP_MSGGET        = 320,
338         OP_MSGCTL        = 321,
339         OP_MSGSND        = 322,
340         OP_MSGRCV        = 323,
341         OP_SEMOP         = 324,
342         OP_SEMGET        = 325,
343         OP_SEMCTL        = 326,
344         OP_REQUIRE       = 327,
345         OP_DOFILE        = 328,
346         OP_HINTSEVAL     = 329,
347         OP_ENTEREVAL     = 330,
348         OP_LEAVEEVAL     = 331,
349         OP_ENTERTRY      = 332,
350         OP_LEAVETRY      = 333,
351         OP_GHBYNAME      = 334,
352         OP_GHBYADDR      = 335,
353         OP_GHOSTENT      = 336,
354         OP_GNBYNAME      = 337,
355         OP_GNBYADDR      = 338,
356         OP_GNETENT       = 339,
357         OP_GPBYNAME      = 340,
358         OP_GPBYNUMBER    = 341,
359         OP_GPROTOENT     = 342,
360         OP_GSBYNAME      = 343,
361         OP_GSBYPORT      = 344,
362         OP_GSERVENT      = 345,
363         OP_SHOSTENT      = 346,
364         OP_SNETENT       = 347,
365         OP_SPROTOENT     = 348,
366         OP_SSERVENT      = 349,
367         OP_EHOSTENT      = 350,
368         OP_ENETENT       = 351,
369         OP_EPROTOENT     = 352,
370         OP_ESERVENT      = 353,
371         OP_GPWNAM        = 354,
372         OP_GPWUID        = 355,
373         OP_GPWENT        = 356,
374         OP_SPWENT        = 357,
375         OP_EPWENT        = 358,
376         OP_GGRNAM        = 359,
377         OP_GGRGID        = 360,
378         OP_GGRENT        = 361,
379         OP_SGRENT        = 362,
380         OP_EGRENT        = 363,
381         OP_GETLOGIN      = 364,
382         OP_SYSCALL       = 365,
383         OP_LOCK          = 366,
384         OP_ONCE          = 367,
385         OP_CUSTOM        = 368,
386         OP_REACH         = 369,
387         OP_RKEYS         = 370,
388         OP_RVALUES       = 371,
389         OP_COREARGS      = 372,
390         OP_RUNCV         = 373,
391         OP_FC            = 374,
392         OP_PADCV         = 375,
393         OP_INTROCV       = 376,
394         OP_CLONECV       = 377,
395         OP_PADRANGE      = 378,
396         OP_max          
397 } opcode;
398
399 #define MAXO 379
400 #define OP_FREED MAXO
401
402 /* the OP_IS_* macros are optimized to a simple range check because
403     all the member OPs are contiguous in regen/opcodes table.
404     opcode.pl verifies the range contiguity, or generates an OR-equals
405     expression */
406
407 #define OP_IS_SOCKET(op)        \
408         ((op) >= OP_SEND && (op) <= OP_GETPEERNAME)
409
410 #define OP_IS_FILETEST(op)      \
411         ((op) >= OP_FTRREAD && (op) <= OP_FTBINARY)
412
413 #define OP_IS_FILETEST_ACCESS(op)       \
414         ((op) >= OP_FTRREAD && (op) <= OP_FTEEXEC)
415
416 #define OP_IS_NUMCOMPARE(op)    \
417         ((op) >= OP_LT && (op) <= OP_I_NCMP)
418
419 #define OP_IS_DIRHOP(op)        \
420         ((op) >= OP_READDIR && (op) <= OP_CLOSEDIR)
421
422 /* ex: set ro: */