factor/vm/old_space.hpp

22 lines
481 B
C++
Raw Normal View History

namespace factor
{
2009-10-09 04:20:50 -04:00
static const cell card_starts_inside_object = 0xff;
struct old_space : zone {
2009-10-09 04:20:50 -04:00
card *object_start_offsets;
card *object_start_offsets_end;
old_space(cell size_, cell start_);
~old_space();
2009-10-14 20:55:02 -04:00
cell first_object_in_card(cell card_index);
cell find_object_containing_card(cell card_index);
2009-10-09 04:20:50 -04:00
void record_object_start_offset(object *obj);
object *allot(cell size);
2009-10-09 04:20:50 -04:00
void clear_object_start_offsets();
cell next_object_after(factor_vm *myvm, cell scan);
};
}