NAME
B::Asmdata - Autogenerated data about Perl ops, used to generate byte-
codeSYNOPSIS
use B::Asmdata qw(%insndata @insnname @optype @specialsvname);
DESCRIPTION
Provides information about Perl ops in order to generate bytecode via a bunch of exported variables. Its mostly used by B::Assembler and B::Disassembler.%insndata
my($bytecodenum, $putsub, $getmeth) = @$insndata{$opname};
For a given $opname (for example, 'coplabel', 'svflags', etc...)
you get an array ref containing the bytecode number of the op, a reference to the subroutine used to 'PUT', and the name of the method used to 'GET'. @insnnamemy $opname = $insnname[$bytecodenum];
A simple mapping of the bytecode number to the name of the op.Suitable for using with %insndata like so:
my $opinfo = $insndata{$insnname[$bytecodenum]};
@optypemy $optype = $optype[$optypenum];
A simple mapping of the op type number to its type (like 'COP' or 'BINOP'). @specialsvnamemy $svname = $specialsvname[$svindex];
Certain SV types are considered 'special'. They're represented by B::SPECIAL and are referred to by a number from the specialsvlist. This array maps that number back to the name of the SV (like 'Nullsv' or '&PLsvundef'). AUTHOR Malcolm Beattie, "mbeattie@sable.ox.ac.uk"perl v5.8.8 2001-09-21 B::Asmdata(3pm)