This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
B.xs: move all B::*OP methods to B::OP::next
authorDavid Mitchell <davem@iabyn.com>
Thu, 25 Oct 2012 13:48:06 +0000 (14:48 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 26 Oct 2012 15:51:56 +0000 (16:51 +0100)
commit287ce0d803aefd2f93e3042eef9a1349a46e3d11
treecbd498a0051d50c0f1f70bd3b9cafc843d7ce15c
parentbec746fe92e05b80645abd249ecd20efb0639cd6
B.xs: move all B::*OP methods to B::OP::next

The previous commit moved all B::*OP methods capable of using direct field
offsets into next(). This commit moves the remaining B::*OP methods onto
it too (apart from oplist(), which returns a list rather than a single
item).

This simplifies the code, reduces the object size, and will also make it
easier to add an overlay facility, which will be coming soon.
ext/B/B.xs