This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[MERGE] redo boolean context
authorDavid Mitchell <davem@iabyn.com>
Fri, 6 Jan 2017 16:28:50 +0000 (16:28 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 6 Jan 2017 16:28:50 +0000 (16:28 +0000)
commitbec5a1ba1ddeb36f189da30307757fead2933e93
treef4d7cda87ff8b3b0c34483a7b615983103012237
parent12e1fa63201ac1c5e2c5ecb94649c3ac6af7b057
parentb243b19395066bedc2a6dc3051cd0678692aa7d5
[MERGE] redo boolean context

Overhaul the stuff that flags an op as being in boolean context (currently
just padhv and rv2hv). Make the mechanism in rpeep() general, so that
other ops can be easily added in future, and add a generic testing
framework for such ops in t/perf/optree.t.

This alters the amount on situations recognised as being in boolean
context (mainly increasing them).