NAME
Parrot::OpTrans::CSwitch - C Switch Transform
DESCRIPTION
Parrot::OpTrans::CSwitch
inherits from Parrot::OpTrans::CPrederef
to provide a mixture of predereferenced register addressing and a switch
ed run loop.
Instance Methods
core_type()
The core type is core_prefix()
The prefix is suffix()
The suffix is defines()
Returns the C goto_address($address)
Transforms the goto_offset($offset)
Transforms the goto_pop()
Transforms the init_func_init1($base)
Returns the C code for the init function.
run_core_func_start()
Returns the C code prior to the run core function.
run_core_split($base)
If defined return code to split e.g.
a switch.
run_core_finish($base)
Returns the C code following the run core function.
PARROT_SWITCH_CORE
.
'switch_'
.
'_switch'
.
#define
macros required by the ops.
goto ADDRESS($address)
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.