factor/vm/cpu-ppc.h

33 lines
808 B
C
Raw Normal View History

2007-10-13 17:57:29 -04:00
typedef struct
{
/* In compiled quotation frames, position within the array.
In compiled word frames, unused. */
CELL scan;
/* In compiled quotation frames, the quot->array slot.
In compiled word frames, unused. */
CELL array;
/* In all compiled frames, the XT on entry. */
XT xt;
/* Frame size in bytes */
CELL size;
} F_STACK_FRAME;
2007-09-20 18:09:08 -04:00
#define FACTOR_CPU_STRING "ppc"
2007-09-27 16:10:37 -04:00
#define F_FASTCALL
2007-09-20 18:09:08 -04:00
register CELL ds asm("r14");
register CELL rs asm("r15");
void c_to_factor(CELL quot);
void dosym(CELL word);
void docol_profiling(CELL word);
void docol(CELL word);
void undefined(CELL word);
void set_callstack(F_STACK_FRAME *to, F_STACK_FRAME *from, CELL length, void *memcpy);
void throw_impl(CELL quot, F_STACK_FRAME *rewind);
2007-09-25 21:23:20 -04:00
void lazy_jit_compile(CELL quot);
2007-09-20 18:09:08 -04:00
void flush_icache(CELL start, CELL len);