summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2023-02-08 18:16:02 +0000
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2023-02-10 14:38:44 +0000
commitd8b29a3430b219e3ab3dae2947a0ff22885c1b5e (patch)
tree61f97639111bca805999c24a256a2b0b037e9c98 /opcode.h
parent07c4c053ee9ee2dac36d7eadd6d2558d94a7a802 (diff)
downloadperl-d8b29a3430b219e3ab3dae2947a0ff22885c1b5e.tar.gz
Field :param attributes, //= and ||= default assignments
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h137
1 files changed, 70 insertions, 67 deletions
diff --git a/opcode.h b/opcode.h
index b976fc1c9e..af1043a8c4 100644
--- a/opcode.h
+++ b/opcode.h
@@ -2387,6 +2387,7 @@ END_EXTERN_C
#define OPpDEFER_FINALLY 0x80
#define OPpENTERSUB_NOPAREN 0x80
#define OPpHELEMEXISTSOR_DELETE 0x80
+#define OPpINITFIELDS 0x80
#define OPpLVALUE 0x80
#define OPpLVAL_INTRO 0x80
#define OPpOFFBYONE 0x80
@@ -2469,6 +2470,7 @@ EXTCONST char PL_op_private_labels[] = {
'I','N','A','R','G','S','\0',
'I','N','B','I','N','\0',
'I','N','C','R','\0',
+ 'I','N','I','T','F','I','E','L','D','S','\0',
'I','N','I','T','F','I','E','L','D','_','A','V','\0',
'I','N','I','T','F','I','E','L','D','_','H','V','\0',
'I','N','P','L','A','C','E','\0',
@@ -2534,14 +2536,14 @@ EXTCONST char PL_op_private_labels[] = {
EXTCONST I16 PL_op_private_bitfields[] = {
0, 8, -1,
0, 8, -1,
- 0, 657, -1,
+ 0, 668, -1,
0, 8, -1,
0, 8, -1,
+ 0, 675, -1,
0, 664, -1,
- 0, 653, -1,
- 1, -1, 0, 614, 1, 39, 2, 312, -1,
+ 1, -1, 0, 625, 1, 39, 2, 312, -1,
4, -1, 1, 185, 2, 192, 3, 199, -1,
- 4, -1, 0, 614, 1, 39, 2, 312, 3, 131, -1,
+ 4, -1, 0, 625, 1, 39, 2, 312, 3, 131, -1,
};
@@ -2969,8 +2971,8 @@ EXTCONST I16 PL_op_private_bitdef_ix[] = {
[OP_FLOOR] = 78,
[OP_IS_TAINTED] = 0,
[OP_HELEMEXISTSOR] = 253,
- [OP_METHSTART] = 0,
- [OP_INITFIELD] = 255,
+ [OP_METHSTART] = 255,
+ [OP_INITFIELD] = 257,
};
@@ -2989,84 +2991,85 @@ EXTCONST I16 PL_op_private_bitdef_ix[] = {
*/
EXTCONST U16 PL_op_private_bitdefs[] = {
- 0x0003, /* scalar, prototype, refgen, srefgen, readline, regcmaybe, regcreset, regcomp, substcont, chop, schop, defined, study, preinc, i_preinc, predec, i_predec, postinc, i_postinc, postdec, i_postdec, negate, i_negate, not, ucfirst, lcfirst, uc, lc, quotemeta, aeach, avalues, each, pop, shift, grepstart, mapstart, mapwhile, range, and, or, dor, andassign, orassign, dorassign, argcheck, method, method_named, method_super, method_redir, method_redir_super, entergiven, leavegiven, enterwhen, leavewhen, untie, tied, dbmclose, getsockname, getpeername, lstat, stat, readlink, readdir, telldir, rewinddir, closedir, localtime, alarm, require, dofile, entertry, ghbyname, gnbyname, gpbyname, shostent, snetent, sprotoent, sservent, gpwnam, gpwuid, ggrnam, ggrgid, lock, once, fc, anonconst, cmpchain_and, cmpchain_dup, entertrycatch, catch, is_bool, is_weak, weaken, unweaken, is_tainted, methstart */
- 0x387c, 0x4979, /* pushmark */
+ 0x0003, /* scalar, prototype, refgen, srefgen, readline, regcmaybe, regcreset, regcomp, substcont, chop, schop, defined, study, preinc, i_preinc, predec, i_predec, postinc, i_postinc, postdec, i_postdec, negate, i_negate, not, ucfirst, lcfirst, uc, lc, quotemeta, aeach, avalues, each, pop, shift, grepstart, mapstart, mapwhile, range, and, or, dor, andassign, orassign, dorassign, argcheck, method, method_named, method_super, method_redir, method_redir_super, entergiven, leavegiven, enterwhen, leavewhen, untie, tied, dbmclose, getsockname, getpeername, lstat, stat, readlink, readdir, telldir, rewinddir, closedir, localtime, alarm, require, dofile, entertry, ghbyname, gnbyname, gpbyname, shostent, snetent, sprotoent, sservent, gpwnam, gpwuid, ggrnam, ggrgid, lock, once, fc, anonconst, cmpchain_and, cmpchain_dup, entertrycatch, catch, is_bool, is_weak, weaken, unweaken, is_tainted */
+ 0x39dc, 0x4ad9, /* pushmark */
0x00bd, /* wantarray, runcv */
- 0x0558, 0x1b70, 0x4a2c, 0x45c8, 0x3da5, /* const */
- 0x387c, 0x3ef9, /* gvsv */
+ 0x0558, 0x1b70, 0x4b8c, 0x4728, 0x3f05, /* const */
+ 0x39dc, 0x4059, /* gvsv */
0x19d5, /* gv */
0x0067, /* gelem, lt, i_lt, gt, i_gt, le, i_le, ge, i_ge, eq, i_eq, ne, i_ne, ncmp, i_ncmp, slt, sgt, sle, sge, seq, sne, scmp, smartmatch, lslice, xor, isa */
- 0x387c, 0x4978, 0x03d7, /* padsv */
- 0x387c, 0x4978, 0x0003, /* padsv_store, lvavref */
- 0x387c, 0x4978, 0x06d4, 0x396c, 0x4749, /* padav */
- 0x387c, 0x4978, 0x06d4, 0x0770, 0x396c, 0x4748, 0x33e1, /* padhv */
- 0x387c, 0x1d58, 0x03d6, 0x396c, 0x3cc8, 0x4a24, 0x0003, /* rv2gv */
- 0x387c, 0x3ef8, 0x03d6, 0x4a24, 0x0003, /* rv2sv */
- 0x396c, 0x0003, /* av2arylen, akeys, values, keys */
- 0x3c3c, 0x1198, 0x0ef4, 0x014c, 0x4d28, 0x4a24, 0x0003, /* rv2cv */
+ 0x39dc, 0x4ad8, 0x03d7, /* padsv */
+ 0x39dc, 0x4ad8, 0x0003, /* padsv_store, lvavref */
+ 0x39dc, 0x4ad8, 0x06d4, 0x3acc, 0x48a9, /* padav */
+ 0x39dc, 0x4ad8, 0x06d4, 0x0770, 0x3acc, 0x48a8, 0x3541, /* padhv */
+ 0x39dc, 0x1d58, 0x03d6, 0x3acc, 0x3e28, 0x4b84, 0x0003, /* rv2gv */
+ 0x39dc, 0x4058, 0x03d6, 0x4b84, 0x0003, /* rv2sv */
+ 0x3acc, 0x0003, /* av2arylen, akeys, values, keys */
+ 0x3d9c, 0x1198, 0x0ef4, 0x014c, 0x4e88, 0x4b84, 0x0003, /* rv2cv */
0x06d4, 0x0770, 0x0003, /* ref, blessed */
0x018f, /* bless, glob, sprintf, formline, unpack, pack, join, anonlist, anonhash, splice, warn, die, reset, exit, close, pipe_op, fileno, umask, binmode, tie, dbmopen, sselect, select, getc, read, enterwrite, sysopen, sysseek, sysread, syswrite, eof, tell, seek, truncate, fcntl, ioctl, send, recv, socket, sockpair, bind, connect, listen, accept, shutdown, gsockopt, ssockopt, open_dir, seekdir, gmtime, shmget, shmctl, shmread, shmwrite, msgget, msgctl, msgsnd, msgrcv, semop, semget, semctl, ghbyaddr, gnbyaddr, gpbynumber, gsbyname, gsbyport, syscall */
- 0x40dc, 0x3ff8, 0x2cf4, 0x2c30, 0x0003, /* backtick */
+ 0x423c, 0x4158, 0x2cf4, 0x2c30, 0x0003, /* backtick */
0x06d5, /* subst */
- 0x129c, 0x23d8, 0x0ad4, 0x488c, 0x2768, 0x5004, 0x08e1, /* trans, transr */
+ 0x129c, 0x23d8, 0x0ad4, 0x49ec, 0x2768, 0x5164, 0x08e1, /* trans, transr */
0x10dc, 0x05f8, 0x0067, /* sassign */
- 0x0d98, 0x0c94, 0x0b90, 0x396c, 0x06c8, 0x0067, /* aassign */
- 0x4dd0, 0x0003, /* chomp, schomp, scomplement, sin, cos, exp, log, sqrt, int, hex, oct, abs, ord, chr, chroot, rmdir, refaddr, reftype, ceil, floor */
- 0x387c, 0x4978, 0x32f4, 0x4dd0, 0x0003, /* undef */
- 0x06d4, 0x396c, 0x0003, /* pos */
- 0x4dd0, 0x0067, /* pow, multiply, i_multiply, divide, i_divide, modulo, i_modulo, add, i_add, subtract, i_subtract */
+ 0x0d98, 0x0c94, 0x0b90, 0x3acc, 0x06c8, 0x0067, /* aassign */
+ 0x4f30, 0x0003, /* chomp, schomp, scomplement, sin, cos, exp, log, sqrt, int, hex, oct, abs, ord, chr, chroot, rmdir, refaddr, reftype, ceil, floor */
+ 0x39dc, 0x4ad8, 0x3454, 0x4f30, 0x0003, /* undef */
+ 0x06d4, 0x3acc, 0x0003, /* pos */
+ 0x4f30, 0x0067, /* pow, multiply, i_multiply, divide, i_divide, modulo, i_modulo, add, i_add, subtract, i_subtract */
0x1658, 0x0067, /* repeat */
- 0x3b58, 0x4dd0, 0x0067, /* concat */
- 0x387c, 0x0338, 0x1d54, 0x4dd0, 0x4b0c, 0x0003, /* multiconcat */
- 0x4dd0, 0x018f, /* stringify, atan2, rand, srand, crypt, push, unshift, flock, chdir, chown, unlink, chmod, utime, rename, link, symlink, mkdir, waitpid, system, exec, kill, getpgrp, setpgrp, getpriority, setpriority, sleep */
- 0x4dd0, 0x4f29, /* left_shift, right_shift, nbit_and, nbit_xor, nbit_or, ncomplement */
- 0x4f29, /* bit_and, bit_xor, bit_or, sbit_and, sbit_xor, sbit_or, complement */
- 0x06d4, 0x4dd0, 0x0003, /* length */
- 0x4330, 0x396c, 0x012b, /* substr */
- 0x396c, 0x0067, /* vec */
- 0x3ad8, 0x06d4, 0x4dd0, 0x018f, /* index, rindex */
- 0x387c, 0x3ef8, 0x06d4, 0x396c, 0x4748, 0x4a24, 0x0003, /* rv2av */
+ 0x3cb8, 0x4f30, 0x0067, /* concat */
+ 0x39dc, 0x0338, 0x1d54, 0x4f30, 0x4c6c, 0x0003, /* multiconcat */
+ 0x4f30, 0x018f, /* stringify, atan2, rand, srand, crypt, push, unshift, flock, chdir, chown, unlink, chmod, utime, rename, link, symlink, mkdir, waitpid, system, exec, kill, getpgrp, setpgrp, getpriority, setpriority, sleep */
+ 0x4f30, 0x5089, /* left_shift, right_shift, nbit_and, nbit_xor, nbit_or, ncomplement */
+ 0x5089, /* bit_and, bit_xor, bit_or, sbit_and, sbit_xor, sbit_or, complement */
+ 0x06d4, 0x4f30, 0x0003, /* length */
+ 0x4490, 0x3acc, 0x012b, /* substr */
+ 0x3acc, 0x0067, /* vec */
+ 0x3c38, 0x06d4, 0x4f30, 0x018f, /* index, rindex */
+ 0x39dc, 0x4058, 0x06d4, 0x3acc, 0x48a8, 0x4b84, 0x0003, /* rv2av */
0x025f, /* aelemfast, aelemfast_lex, aelemfastlex_store */
- 0x387c, 0x3778, 0x03d6, 0x396c, 0x0067, /* aelem, helem */
- 0x387c, 0x396c, 0x4749, /* aslice, hslice */
- 0x396d, /* kvaslice, kvhslice */
- 0x387c, 0x4698, 0x3494, 0x0003, /* delete */
- 0x4c58, 0x0003, /* exists */
- 0x387c, 0x3ef8, 0x06d4, 0x0770, 0x396c, 0x4748, 0x4a24, 0x33e1, /* rv2hv */
- 0x387c, 0x3778, 0x1314, 0x1c70, 0x396c, 0x4a24, 0x0003, /* multideref */
- 0x387c, 0x3ef8, 0x0410, 0x358c, 0x2a69, /* split */
- 0x387c, 0x2499, /* list */
- 0x387c, 0x4978, 0x0214, 0x4dd0, 0x018f, /* emptyavhv */
- 0x15b0, 0x30cc, 0x4428, 0x31c4, 0x3e61, /* sort */
- 0x30cc, 0x0003, /* reverse */
+ 0x39dc, 0x38d8, 0x03d6, 0x3acc, 0x0067, /* aelem, helem */
+ 0x39dc, 0x3acc, 0x48a9, /* aslice, hslice */
+ 0x3acd, /* kvaslice, kvhslice */
+ 0x39dc, 0x47f8, 0x35f4, 0x0003, /* delete */
+ 0x4db8, 0x0003, /* exists */
+ 0x39dc, 0x4058, 0x06d4, 0x0770, 0x3acc, 0x48a8, 0x4b84, 0x3541, /* rv2hv */
+ 0x39dc, 0x38d8, 0x1314, 0x1c70, 0x3acc, 0x4b84, 0x0003, /* multideref */
+ 0x39dc, 0x4058, 0x0410, 0x36ec, 0x2a69, /* split */
+ 0x39dc, 0x2499, /* list */
+ 0x39dc, 0x4ad8, 0x0214, 0x4f30, 0x018f, /* emptyavhv */
+ 0x15b0, 0x322c, 0x4588, 0x3324, 0x3fc1, /* sort */
+ 0x322c, 0x0003, /* reverse */
0x06d4, 0x0003, /* grepwhile */
- 0x3618, 0x0003, /* flip, flop */
- 0x387c, 0x0003, /* cond_expr */
- 0x387c, 0x1198, 0x03d6, 0x014c, 0x4d28, 0x4a24, 0x2b41, /* entersub */
- 0x4198, 0x0003, /* leavesub, leavesublv, leavewrite, leaveeval */
+ 0x3778, 0x0003, /* flip, flop */
+ 0x39dc, 0x0003, /* cond_expr */
+ 0x39dc, 0x1198, 0x03d6, 0x014c, 0x4e88, 0x4b84, 0x2b41, /* entersub */
+ 0x42f8, 0x0003, /* leavesub, leavesublv, leavewrite, leaveeval */
0x02aa, 0x0003, /* argelem */
0x295c, 0x2838, 0x0003, /* argdefelem */
0x00bc, 0x018f, /* caller */
0x2675, /* nextstate, dbstate */
- 0x371c, 0x4199, /* leave */
- 0x387c, 0x3ef8, 0x120c, 0x44a5, /* enteriter */
- 0x44a5, /* iter */
- 0x371c, 0x0067, /* leaveloop */
- 0x513c, 0x0003, /* last, next, redo, dump, goto */
- 0x40dc, 0x3ff8, 0x2cf4, 0x2c30, 0x018f, /* open */
+ 0x387c, 0x42f9, /* leave */
+ 0x39dc, 0x4058, 0x120c, 0x4605, /* enteriter */
+ 0x4605, /* iter */
+ 0x387c, 0x0067, /* leaveloop */
+ 0x529c, 0x0003, /* last, next, redo, dump, goto */
+ 0x423c, 0x4158, 0x2cf4, 0x2c30, 0x018f, /* open */
0x2010, 0x226c, 0x2128, 0x1ee4, 0x0003, /* ftrread, ftrwrite, ftrexec, fteread, ftewrite, fteexec */
0x2010, 0x226c, 0x2128, 0x0003, /* ftis, ftsize, ftmtime, ftatime, ftctime, ftrowned, fteowned, ftzero, ftsock, ftchr, ftblk, ftfile, ftdir, ftpipe, ftsuid, ftsgid, ftsvtx, ftlink, fttty, fttext, ftbinary */
- 0x4dd1, /* wait, getppid, time */
- 0x4234, 0x0fb0, 0x082c, 0x4ea8, 0x2584, 0x0003, /* entereval */
- 0x3a3c, 0x0018, 0x14c4, 0x13e1, /* coreargs */
- 0x396c, 0x00c7, /* avhvswitch */
- 0x387c, 0x01fb, /* padrange */
- 0x387c, 0x4978, 0x04f6, 0x324c, 0x1ac8, 0x0067, /* refassign */
- 0x387c, 0x4978, 0x04f6, 0x324c, 0x1ac8, 0x0003, /* lvref */
- 0x387d, /* lvrefslice */
+ 0x4f31, /* wait, getppid, time */
+ 0x4394, 0x0fb0, 0x082c, 0x5008, 0x2584, 0x0003, /* entereval */
+ 0x3b9c, 0x0018, 0x14c4, 0x13e1, /* coreargs */
+ 0x3acc, 0x00c7, /* avhvswitch */
+ 0x39dc, 0x01fb, /* padrange */
+ 0x39dc, 0x4ad8, 0x04f6, 0x33ac, 0x1ac8, 0x0067, /* refassign */
+ 0x39dc, 0x4ad8, 0x04f6, 0x33ac, 0x1ac8, 0x0003, /* lvref */
+ 0x39dd, /* lvrefslice */
0x1dfc, 0x0003, /* pushdefer */
0x131c, 0x0003, /* helemexistsor */
- 0x2f28, 0x2d84, 0x0003, /* initfield */
+ 0x2d9c, 0x0003, /* methstart */
+ 0x3088, 0x2ee4, 0x0003, /* initfield */
};
@@ -3494,7 +3497,7 @@ EXTCONST U8 PL_op_private_valid[] = {
[OP_FLOOR] = (OPpARG1_MASK|OPpTARGET_MY),
[OP_IS_TAINTED] = (OPpARG1_MASK),
[OP_HELEMEXISTSOR] = (OPpARG1_MASK|OPpHELEMEXISTSOR_DELETE),
- [OP_METHSTART] = (OPpARG1_MASK),
+ [OP_METHSTART] = (OPpARG1_MASK|OPpINITFIELDS),
[OP_INITFIELD] = (OPpARG1_MASK|OPpINITFIELD_AV|OPpINITFIELD_HV),
};