summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-10-18 10:23:26 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-10-18 12:49:27 -0700
commit01762542fcff2d3eb5e0fd287f28e872a0cfd5a4 (patch)
tree5ff1efca76f6b548b3561301aa34673a55b428e2 /opcode.h
parent28482d6cad995d14acdad04e18ee2d4ee32c6a18 (diff)
downloadperl-01762542fcff2d3eb5e0fd287f28e872a0cfd5a4.tar.gz
Use srefgen for anoncode
srefgen is faster than refgen, since it doesn’t have to loop through the arguments (there is only one) and there is no pushmark to execute. OA_RETSCALAR causes scalar context to be applied to anoncode ops, but it always returns one item anyway, so that causes no problems.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcode.h b/opcode.h
index 97734088b4..ca1f83680f 100644
--- a/opcode.h
+++ b/opcode.h
@@ -1758,7 +1758,7 @@ EXTCONST U32 PL_opargs[] = {
0x00000144, /* rv2sv */
0x00000104, /* av2arylen */
0x00000140, /* rv2cv */
- 0x00000600, /* anoncode */
+ 0x00000604, /* anoncode */
0x00001b04, /* prototype */
0x00002101, /* refgen */
0x00001106, /* srefgen */