This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
CXt_EVAL: save savestack_ix and tmps_floor in CX
authorDavid Mitchell <davem@iabyn.com>
Fri, 17 Jul 2015 21:23:51 +0000 (22:23 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Feb 2016 08:59:38 +0000 (08:59 +0000)
commitadcbf1182122d17f378d2c30e3182991bdf754cd
tree68cae5f56fcfaea491334b967f88d5aadaadada0
parent3eb5c03d291640740f1aba63e5978084371a560c
CXt_EVAL: save savestack_ix and tmps_floor in CX

In the various places that do PUSHEVAL (eval, require etc), eliminate

    ENTER; SAVETMPS

and instead save the old values of PL_savestack_ix and PL_tmps_floor
directly in the eval context frame, similarly to how subs have been
recently changed.

This is faster and cleaner.
cop.h
pp_ctl.c