factor/vm/cpu-x86.h

31 lines
861 B
C
Raw Normal View History

2007-10-05 17:30:10 -04:00
#define FRAME_RETURN_ADDRESS(frame) *(XT *)(frame_successor(frame) + 1)
2007-09-20 18:09:08 -04:00
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
INLINE void flush_icache(CELL start, CELL len) {}
2007-09-27 16:10:37 -04:00
F_FASTCALL void c_to_factor(CELL quot);
F_FASTCALL void throw_impl(CELL quot, F_STACK_FRAME *rewind_to);
F_FASTCALL void undefined(CELL word);
F_FASTCALL void dosym(CELL word);
F_FASTCALL void docol_profiling(CELL word);
F_FASTCALL void docol(CELL word);
F_FASTCALL void lazy_jit_compile(CELL quot);
2007-09-22 00:44:27 -04:00
void set_callstack(F_STACK_FRAME *to, F_STACK_FRAME *from, CELL length, void *memcpy);