summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2014-06-16 05:53:08 -0400
committerFather Chrysostomos <sprout@cpan.org>2014-09-18 20:08:38 -0700
commit80dd201b1d988a0f948dec8b25f624b4007aca59 (patch)
treecbda92b9e641cb713549b6a9cb6f38a1e3e83aa1
parentc77ed9ca79ef772961f511a2176824386a19b6d1 (diff)
downloadperl-80dd201b1d988a0f948dec8b25f624b4007aca59.tar.gz
factor out TAINT_NOT into S_adjust_stack_on_leave
All callers of S_adjust_stack_on_leave had TAINT_NOT before the call to S_adjust_stack_on_leave. Factor it into the func to make the callers smallers machine code wise. More things can be factored out into adjust_stack_on_leave from its callers, but this particular change is very easy.
-rw-r--r--pp_ctl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 95ba8487bc..3337be07c9 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1989,6 +1989,7 @@ S_adjust_stack_on_leave(pTHX_ SV **newsp, SV **sp, SV **mark, I32 gimme,
bool padtmp = 0;
PERL_ARGS_ASSERT_ADJUST_STACK_ON_LEAVE;
+ TAINT_NOT;
if (flags & SVs_PADTMP) {
flags &= ~SVs_PADTMP;
padtmp = 1;
@@ -2058,7 +2059,6 @@ PP(pp_leave)
gimme = OP_GIMME(PL_op, (cxstack_ix >= 0) ? gimme : G_SCALAR);
- TAINT_NOT;
SP = adjust_stack_on_leave(newsp, SP, newsp, gimme, SVs_PADTMP|SVs_TEMP,
PL_op->op_private & OPpLVALUE);
PL_curpm = newpm; /* Don't pop $1 et al till now */
@@ -2221,7 +2221,6 @@ PP(pp_leaveloop)
mark = newsp;
newsp = PL_stack_base + cx->blk_loop.resetsp;
- TAINT_NOT;
SP = adjust_stack_on_leave(newsp, SP, MARK, gimme, 0,
PL_op->op_private & OPpLVALUE);
PUTBACK;
@@ -4280,7 +4279,6 @@ PP(pp_leaveeval)
retop = cx->blk_eval.retop;
evalcv = cx->blk_eval.cv;
- TAINT_NOT;
SP = adjust_stack_on_leave((gimme == G_VOID) ? SP : newsp, SP, newsp,
gimme, SVs_TEMP, FALSE);
PL_curpm = newpm; /* Don't pop $1 et al till now */
@@ -4378,7 +4376,6 @@ PP(pp_leavetry)
POPEVAL(cx);
PERL_UNUSED_VAR(optype);
- TAINT_NOT;
SP = adjust_stack_on_leave(newsp, SP, newsp, gimme,
SVs_PADTMP|SVs_TEMP, FALSE);
PL_curpm = newpm; /* Don't pop $1 et al till now */
@@ -4425,7 +4422,6 @@ PP(pp_leavegiven)
POPBLOCK(cx,newpm);
assert(CxTYPE(cx) == CXt_GIVEN);
- TAINT_NOT;
SP = adjust_stack_on_leave(newsp, SP, newsp, gimme,
SVs_PADTMP|SVs_TEMP, FALSE);
PL_curpm = newpm; /* Don't pop $1 et al till now */
@@ -4999,7 +4995,6 @@ PP(pp_leavewhen)
POPBLOCK(cx,newpm);
assert(CxTYPE(cx) == CXt_WHEN);
- TAINT_NOT;
SP = adjust_stack_on_leave(newsp, SP, newsp, gimme,
SVs_PADTMP|SVs_TEMP, FALSE);
PL_curpm = newpm; /* pop $1 et al */