factor/vm/cpu-x86.h

34 lines
932 B
C
Raw Normal View History

2007-09-20 18:09:08 -04:00
typedef struct _F_STACK_FRAME
{
/* 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;
2007-09-21 16:43:55 -04:00
/* Pointer to the next stack frame; frames are chained from
the bottom on up */
struct _F_STACK_FRAME *next;
2007-09-20 18:09:08 -04:00
/* In all compiled frames, the XT on entry. */
XT xt;
} F_STACK_FRAME;
#define CALLSTACK_UP_P
#define FRAME_SUCCESSOR(frame) (frame)->next
INLINE void flush_icache(CELL start, CELL len) {}
2007-09-21 23:30:47 -04:00
FASTCALL void c_to_factor(CELL quot);
FASTCALL void throw_impl(CELL quot, F_STACK_FRAME *rewind_to);
FASTCALL void undefined(CELL word);
FASTCALL void dosym(CELL word);
FASTCALL void docol_profiling(CELL word);
FASTCALL void docol(CELL word);
2007-09-26 00:42:11 -04:00
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);