This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_enter: calculate gimme earlier in XS branch
authorDavid Mitchell <davem@iabyn.com>
Sat, 6 Feb 2016 11:04:45 +0000 (11:04 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 6 Feb 2016 11:04:45 +0000 (11:04 +0000)
commit71d19c377e6e65ed965e367cd3b5d2233e093857
tree7b8ef7a06456bf7868a22cfb4b7f05ef84ab607d
parent02dd132599165f7bdc71bf9aa6500d726ad5ee36
pp_enter: calculate gimme earlier in XS branch

My commit 801bbf618dc make it so that pp_entersub only calculates
gimme at the point its needed, to avoid wasting register resource.
However in n the XS branch it was a bit over-enthusiatic: its possible
for an XS sub to save PL_op and change its value. The old value will
only get restored when pp_entersub soes LEAVE, which is *after* we
cacluate gimme. So grab the value before the XS sub is called.
pp_hot.c