NAME
Parrot::OpTrans::Compiled - Transform Parrot Bytecode To C
DESCRIPTION
Parrot::OpTrans::Compiled inherits from Parrot::OpTrans and is used by tools/build/pbc2c.pl to transform Parrot bytecode to a C code run loop.
Instance Methods
defines()
Returns the C pc($pc)pc()
Sets/gets the current position in Parrot code.
args(@args)args()
Sets/gets the transform's arguments.
arg($index)
Returns the argument at index goto_address($address)
Transforms the expr_offset($offset)
An offset expression is always an offset from goto_offset($offset)
Transforms the goto_pop()
Transforms the access_arg($type, $value, $op)
Returns the C code for the specified op argument type (see restart_address($address)
Returns the C code for restart_offset($offset)
Returns the C code for
#define macros required by the ops.
$index.
goto ADDRESS($address) macro in an ops file into the relevant C code.
start_code,
because the ret instruction may be in a different runops core.
ret will always treat saved addresses as relative to start_code,
because that interpretation is global across all runops cores.
goto OFFSET($offset) macro in an ops file into the relevant C code.
goto POP() macro in an ops file into the relevant C code.
Parrot::OpTrans) and value.
$op is an instance of Parrot::Op.
restart ADDRESS($address).
restart OFFSET($offset).