This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95f9781
)
pp_hot.c:padsv: rewrt cmnt for clrty
author
Father Chrysostomos
<sprout@cpan.org>
Tue, 20 Nov 2012 05:31:11 +0000
(21:31 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Tue, 20 Nov 2012 05:31:56 +0000
(21:31 -0800)
pp_hot.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_hot.c
b/pp_hot.c
index
db6945d
..
d535434
100644
(file)
--- a/
pp_hot.c
+++ b/
pp_hot.c
@@
-394,7
+394,10
@@
PP(pp_padsv)
if (!(op->op_private & OPpPAD_STATE))
save_clearsv(padentry);
if (op->op_private & OPpDEREF) {
- /* TOPs arg is TARG, but TOPs (SP) rmvs a var across save_clearsv */
+ /* TOPs is equivalent to TARG here. Using TOPs (SP) rather
+ than TARG reduces the scope of TARG, so it does not
+ span the call to save_clearsv, resulting in smaller
+ machine code. */
TOPs = vivify_ref(TOPs, op->op_private & OPpDEREF);
}
}