]> gitweb.factorcode.org Git - factor.git/blob - vm/vm.cpp
vm: actually use context callstacks when running code
[factor.git] / vm / vm.cpp
1 #include "master.hpp"
2
3 namespace factor
4 {
5
6 factor_vm::factor_vm() :
7         nursery(0,0),
8         callback_id(0),
9         c_to_factor_func(NULL),
10         profiling_p(false),
11         gc_off(false),
12         current_gc(NULL),
13         gc_events(NULL),
14         fep_disabled(false),
15         full_output(false),
16         last_nano_count(0)
17 {
18         primitive_reset_dispatch_stats();
19 }
20
21 factor_vm::~factor_vm()
22 {
23         delete_contexts();
24 }
25
26 }