This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
move PL_savestack_ix saving into PUSHBLOCK
authorDavid Mitchell <davem@iabyn.com>
Fri, 25 Dec 2015 23:54:23 +0000 (23:54 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 09:19:18 +0000 (09:19 +0000)
commit47878d9caf766872f9956edf713aa65c5b6383aa
treedec7908731ad4d11b6a9013368cdfb51aeded8af
parent49f582ca76846f57550ebf6b762959f757bbdcd5
move PL_savestack_ix saving into PUSHBLOCK

Currently blku_oldsaveix was being set by the various PUSHFOO macros,
except for PUSHSUB and PUSHEVAL which expected their caller to do it
manually.

Now that all the main context state is stored on the context stack
rather than than some on the save stack too, things are a lot simpler,
and this messy transitional state can now be rationalised, whereby
blku_oldsaveix is now always set by PUSHBLOCK; the exact value being
specified by a new arg to PUSHBLOCK.
cop.h
pp_ctl.c
pp_hot.c
pp_sort.c
pp_sys.c