This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
tweak POPSUB()
authorDavid Mitchell <davem@iabyn.com>
Mon, 13 Jul 2015 10:48:04 +0000 (11:48 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:37 +0000 (08:59 +0000)
commit3073d04f153724a688310430661d6c6a311d7500
treec30d1157c1a41de8591787fc613f1051468b39bb
parent8ae997c5a3d6ec713ecf3e698d17ad6090022c7d
tweak POPSUB()

re-order things slightly in POPSUB() so that values aren't being
read into local vars before they're needed (so the compiler doesn't
have to write the values back out to the local stack frame if it runs out
of spare registers).

Also, re-order the fields in struct block_sub so that they roughly
correspond with the order in which they are accessed by POPSUB. This is on
the voodoo theory that if the struct straddles a cache line, we may
trigger a prefetch of the second line, so the extra data will be ready for
us when we need it.
cop.h