]> gitweb.factorcode.org Git - factor.git/blob - vm/callstack.hpp
Dev checkpoint
[factor.git] / vm / callstack.hpp
1 namespace factor
2 {
3
4 inline static cell callstack_size(cell size)
5 {
6         return sizeof(callstack) + size;
7 }
8
9 stack_frame *fix_callstack_top(stack_frame *top, stack_frame *bottom);
10 stack_frame *frame_successor(stack_frame *frame);
11 code_block *frame_code(stack_frame *frame);
12 cell frame_executing(stack_frame *frame);
13 cell frame_scan(stack_frame *frame);
14 cell frame_type(stack_frame *frame);
15
16 PRIMITIVE(callstack);
17 PRIMITIVE(set_callstack);
18 PRIMITIVE(callstack_to_array);
19 PRIMITIVE(innermost_stack_frame_executing);
20 PRIMITIVE(innermost_stack_frame_scan);
21 PRIMITIVE(set_innermost_stack_frame_quot);
22
23 VM_ASM_API void save_callstack_bottom(stack_frame *callstack_bottom);
24
25
26
27 }