]> gitweb.factorcode.org Git - factor.git/blob - vm/data_heap.hpp
Merge branch 'bitfields' of git://factorcode.org/git/factor into bitfields
[factor.git] / vm / data_heap.hpp
1 namespace factor
2 {
3
4 struct data_heap {
5         cell young_size;
6         cell aging_size;
7         cell tenured_size;
8
9         segment *seg;
10
11         zone *nursery;
12         aging_space *aging;
13         aging_space *aging_semispace;
14         tenured_space *tenured;
15         tenured_space *tenured_semispace;
16
17         char *cards;
18         char *cards_end;
19
20         char *decks;
21         char *decks_end;
22         
23         explicit data_heap(factor_vm *myvm, cell young_size, cell aging_size, cell tenured_size);
24         ~data_heap();
25 };
26
27 static const cell nursery_gen = 0;
28 static const cell aging_gen = 1;
29 static const cell tenured_gen = 2;
30 static const cell gen_count = 3;
31
32 }