diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-09-16 00:20:23 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-09-17 16:57:51 -0700 |
commit | 9c47725a2c7c1a5a17231082af905d106c5467fb (patch) | |
tree | 5304bf69f59a3d3d06b5ae851be1648777069457 | |
parent | 62698e047b935ed44827dc9c8a013c1c41a9697d (diff) | |
download | perl-9c47725a2c7c1a5a17231082af905d106c5467fb.tar.gz |
Revert "Set PL_comppad_name on sub entry"
This reverts commit d2c8bf052f5a8bb99050f6d2418d77151eb4b468.
-rw-r--r-- | pad.h | 3 | ||||
-rw-r--r-- | scope.c | 1 | ||||
-rw-r--r-- | scope.h | 3 | ||||
-rw-r--r-- | sv.c | 2 |
4 files changed, 2 insertions, 7 deletions
@@ -172,7 +172,7 @@ XXX DAPM it would make more sense to make the arg a PADOFFSET Clear the pointed to pad value on scope exit. (i.e. the runtime action of 'my') =for apidoc m|void|SAVECOMPPAD -Save PL_comppad_name, PL_comppad and PL_curpad. +save PL_comppad and PL_curpad =for apidoc Amx|PAD **|PadlistARRAY|PADLIST padlist @@ -318,7 +318,6 @@ Restore the old pad saved into the local variable opad by PAD_SAVE_LOCAL() #define PAD_SET_CUR_NOSAVE(padlist,nth) \ - PL_comppad_name = PadlistNAMES(padlist); \ PL_comppad = (PAD*) (PadlistARRAY(padlist)[nth]); \ PL_curpad = AvARRAY(PL_comppad); \ DEBUG_Xv(PerlIO_printf(Perl_debug_log, \ @@ -1078,7 +1078,6 @@ Perl_leave_scope(pTHX_ I32 base) PL_curpad = AvARRAY(PL_comppad); else PL_curpad = NULL; - PL_comppad_name = (PADNAMELIST*)SSPOPPTR; break; case SAVEt_PADSV_AND_MORTALIZE: { @@ -208,8 +208,7 @@ scope has the given name. Name must be a literal string. #define SAVEHINTS() save_hints() -#define SAVECOMPPAD() save_pushptrptr(MUTABLE_SV(PL_comppad_name), \ - MUTABLE_SV(PL_comppad), SAVEt_COMPPAD) +#define SAVECOMPPAD() save_pushptr(MUTABLE_SV(PL_comppad), SAVEt_COMPPAD) #define SAVESWITCHSTACK(f,t) \ STMT_START { \ @@ -12469,8 +12469,6 @@ Perl_ss_dup(pTHX_ PerlInterpreter *proto_perl, CLONE_PARAMS* param) TOPPTR(nss,ix) = sv_dup_inc(sv, param); /* fall through */ case SAVEt_COMPPAD: - sv = (const SV *) POPPTR(ss,ix); - TOPPTR(nss,ix) = sv_dup(sv, param); case SAVEt_NSTAB: sv = (const SV *) POPPTR(ss,ix); TOPPTR(nss,ix) = sv_dup(sv, param); |