NAME
Parrot::Pmc2c::Method
DESCRIPTION
Functions used in transformation of PMCs to C code.
METHODS
new()
Parrot::Pmc2c::Method constructor.
trans($type)
Used in signature()
to normalize argument types.
signature()
Returns the method signature for the methods $parameters
pcc_signature()
Returns a PCC-style method signature for the method's parameters, as well as some additional information useful in building a call to that method.
generate_body($pmc)
-
Generate and emit the C code for the method body.
decl($classname, $method, $for_header)
-
Returns the C code for the PMC method declaration.
$for_header
indicates whether the code is for a header or implementation file. rewrite_nci_method($self, $pmc )
-
Rewrites the method body performing the various macro substitutions for nci method bodies (see tools/build/pmc2c.pl).
rewrite_vtable_method($self, $pmc, $super, $super_table)
-
Rewrites the method body performing the various macro substitutions for vtable function bodies (see tools/build/pmc2c.pl).
full_arguments($args)
-
Prepends
INTERP, SELF
to$args
.
SEE ALSO
lib/Parrot/Pmc2c/PMC/RO.pm
lib/Parrot/Pmc2c/VTable.pm
lib/Parrot/Pmc2c/PMC.pm
lib/Parrot/Pmc2c/Parser.pm