Skip to content

Commit

Permalink
make RC-stack-aware: unwrap pp_padsv_store()
Browse files Browse the repository at this point in the history
Remove the temporary wrapper from this unary pp() function.
It should have been done at the same time as all the other hot unary
ops, but I missed it.
  • Loading branch information
iabyn committed Sep 8, 2023
1 parent f4b0136 commit 7d0ef31
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pp_hot.c
Expand Up @@ -265,13 +265,12 @@ PP(pp_and)
* (PL_op->op_private & OPpASSIGN_BACKWARDS) {or,and,dor}assign
*/

PP_wrapped(pp_padsv_store,1,0)
PP(pp_padsv_store)
{
dSP;
OP * const op = PL_op;
SV** const padentry = &PAD_SVl(op->op_targ);
SV* targ = *padentry; /* lvalue to assign into */
SV* const val = TOPs; /* RHS value to assign */
SV* const val = *PL_stack_sp; /* RHS value to assign */

/* !OPf_STACKED is not handled by this OP */
assert(op->op_flags & OPf_STACKED);
Expand All @@ -295,10 +294,11 @@ PP_wrapped(pp_padsv_store,1,0)
);
SvSetMagicSV(targ, val);

SETs(targ);
RETURN;
rpp_replace_1_1(targ);
return NORMAL;
}


/* A mashup of simplified AELEMFAST_LEX + SASSIGN OPs */

PP(pp_aelemfastlex_store)
Expand Down

0 comments on commit 7d0ef31

Please sign in to comment.