This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove OA_DANGEROUS from loopctl-type ops
authorFather Chrysostomos <sprout@cpan.org>
Sat, 8 Nov 2014 20:40:18 +0000 (12:40 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 9 Nov 2014 00:06:43 +0000 (16:06 -0800)
commitb31e13ff8bcc3b886cde8ce66380fc1032eaf4f9
tree72d52f266356a6e473ed43977b3aac72f58c86b4
parent2eb514137a5f9f0f3b2e488949ceb974a7cbe2fe
Remove OA_DANGEROUS from loopctl-type ops

OA_DANGEROUS indicates that temporary copies may need to be made in
list assignment, to handle things like:

($a, $b) = ($b, $a);

In other words, an op type is flagged with OA_DANGEROUS if its return
values could occur elsewhere on the stack.

These operators never return, so they shouldn’t necessitate
temp copies.

(This could probably apply to dump, too, but I don’t fully under-
stand dump.)
opcode.h
regen/opcodes