summaryrefslogtreecommitdiff
path: root/lib/Pod/t/InputObjects.t
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-11-07 21:46:58 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-11-08 00:33:02 -0800
commitd8cdf5739e500a4f72aa611694308d7244c29573 (patch)
tree652494e1385679221ab2551bb565fd2304cfd5c5 /lib/Pod/t/InputObjects.t
parent12cea2fa656447eef8848bac6de2e3fe413eb787 (diff)
downloadperl-d8cdf5739e500a4f72aa611694308d7244c29573.tar.gz
Allow OPpTARGET_MY optimisation for split
Many operators have a special SV allocated in the pad which is used for return values (the target). If we make that pad offset point to a lexical variable, then we can optimise, say, $lexical = "$foo" into just "$foo", where $lexical is stringify’s ‘target’. And pp_stringify doesn’t need to know any better. We already do that for many ops. This is safe to extend to split. split only uses its target in this code at the end: GETTARGET; PUSHi(iters); so there is no danger of modifying its argument before reading it.
Diffstat (limited to 'lib/Pod/t/InputObjects.t')
0 files changed, 0 insertions, 0 deletions