NAME ^

src/inter_run.c - Parrot Interpreter - Run Ops and Methods

DESCRIPTION ^

Various functions that call the run loop.

Functions ^

runops

Run parrot ops. Set exception handler and/or resume after exception.

Parrot_runops_fromc

Runs the Parrot ops, called from C code. The function arguments are already setup according to Parrot calling conventions, the sub argument is an invocable Sub PMC.

Parrot_run_meth_fromc

Run a method sub from C. The function arguments are already setup according to Parrot calling conventions, the sub argument is an invocable Sub PMC.

If registers a PMC return values, it is returned.

Parrot_runops_fromc_args

Parrot_runops_fromc_args_reti

Parrot_runops_fromc_args_retf

Parrot_runops_fromc_arglist

Parrot_run_meth_fromc_args

Parrot_run_meth_fromc_args_reti

Parrot_run_meth_fromc_args_retf

Run parrot ops, called from C code, function arguments are passed as va_args according to the signature. The sub argument is an invocable Sub PMC.

Signatures are similar to NCI:

    v ... void return
    I ... INTVAL (not Interpreter)
    N ... NUMVAL
    S ... STRING*
    P ... PMC*
Parrot_runops_fromc_args_event

Run code from within event handlers. This variant deals with some reentrency issues. It also should do sanity checks, if e.g. the handler subroutine didn't return properly.

SEE ALSO ^

include/parrot/interpreter.h, src/interpreter.c.


parrot