]> gitweb.factorcode.org Git - factor.git/blob - vm/object_start_map.hpp
audio.engine.test: cleanup using
[factor.git] / vm / object_start_map.hpp
1 namespace factor {
2
3 static const cell card_starts_inside_object = 0xff;
4
5 struct object_start_map {
6   cell size, start;
7   card* object_start_offsets;
8   card* object_start_offsets_end;
9
10   object_start_map(cell size, cell start);
11   ~object_start_map();
12
13   cell find_object_containing_card(cell card_index);
14   void record_object_start_offset(object* obj);
15   void clear_object_start_offsets();
16   void update_card_for_sweep(cell index, uint16_t mask);
17   void update_for_sweep(mark_bits* state);
18 };
19
20 }