| parrotcode: compilers/imcc/pcc.c | |
| Contents | Compilers | 

compilers/imcc/pcc.c

Parrot calling convention implementation.
see: docs/pdds/pdd03_calling_conventions.pod
PCC Implementation by Leopold Toetsch

PARROT_WARN_UNUSED_RESULT PARROT_CAN_RETURN_NULL static Instruction *insINS(PARROT_INTERP, NOTNULL(IMC_Unit *unit), NOTNULL(Instruction *ins), ARGIN(const char *name), NOTNULL(SymReg **regs), int n)PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL SymReg *get_pasm_reg(PARROT_INTERP, ARGIN(const char *name))PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL SymReg *get_const(PARROT_INTERP, ARGIN(const char *name), int type)PARROT_WARN_UNUSED_RESULT PARROT_CAN_RETURN_NULL static Instruction *pcc_get_args(PARROT_INTERP, NOTNULL(IMC_Unit *unit), NOTNULL(Instruction *ins), ARGIN(const char *op_name), int n, NULLOK(SymReg **args), ARGIN_NULLOK(const int *arg_flags))static void unshift_self(NOTNULL(SymReg *sub), NOTNULL(SymReg *obj))void expand_pcc_sub(PARROT_INTERP, NOTNULL(NOTNULL(IMC_Unit *unit)), NOTNULL(NOTNULL(Instruction *ins)))void expand_pcc_sub_ret(PARROT_INTERP, NOTNULL(IMC_Unit *unit), NOTNULL(Instruction *ins))static int pcc_reg_mov(PARROT_INTERP, unsigned char d, unsigned char s, NOTNULL(void *vinfo))PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL static Instruction *move_regs(PARROT_INTERP, NOTNULL(IMC_Unit *unit), NOTNULL(Instruction *ins), int n, NOTNULL(SymReg **dest), NOTNULL(SymReg **src))static int recursive_tail_call(PARROT_INTERP, NOTNULL(NOTNULL(IMC_Unit *unit)), NOTNULL(NOTNULL(Instruction *ins)), NOTNULL(SymReg *sub))static void insert_tail_call(PARROT_INTERP, NOTNULL(IMC_Unit *unit), NOTNULL(NOTNULL(Instruction *ins)), NOTNULL(SymReg *sub), NULLOK(SymReg *meth))void expand_pcc_sub_call(PARROT_INTERP, NOTNULL(IMC_Unit *unit), NOTNULL(Instruction *ins))
|  |   |