NAME
Parrot::OpTrans::CGoto - CGoto Transform
DESCRIPTION
Used to generate C code from Parrot operations.
Parrot::OpTrans::CGoto inherits from Parrot::OpTrans to provide a C goto run loop.
Instance Methods
- suffix()The suffix is
- core_prefix()The core prefix is
- core_type()The core type is
- 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
- goto_address($address)Transforms the
- expr_offset($offset)Transforms the
- goto_offset($offset)Transforms the
- goto_pop()Transforms the
- access_arg($type, $num, $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
- run_core_func_decl($core)Returns the C code for the run core function declaration.
- ops_addr_decl($base_suffix)Returns the C code for the ops address declaration.
- run_core_func_start()Returns the C code prior to the run core function.
- run_core_after_addr_table($base_suffix)Returns the run core C code for section after the address table.
- run_core_finish($base)Returns the C code following the run core function.
- init_func_init1($base)Returns the C code for the init function.
- init_set_dispatch($base_suffix)Returns the C code to initialize the dispatch mechanism within the core's initialization function.
'_cg'.
'cg_'.
PARROT_CGOTO_CORE.
#define macros required by the ops.
$index.
goto ADDRESS($address) macro in an ops file into the relevant C code.
OFFSET($offset) macro in an ops file into the relevant C code.
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).
