VM: init_code_heap is trivial and only used once, so let's remove it

db4
Björn Lindqvist 2015-07-29 17:35:34 +02:00
parent 18ab09e493
commit b44db91f65
3 changed files with 1 additions and 5 deletions

View File

@ -94,9 +94,6 @@ void code_heap::initialize_all_blocks_set() {
#endif #endif
} }
/* Allocate a code heap during startup */
void factor_vm::init_code_heap(cell size) { code = new code_heap(size); }
/* Update pointers to words referenced from all code blocks. /* Update pointers to words referenced from all code blocks.
Only needed after redefining an existing word. Only needed after redefining an existing word.
If generic words were redefined, inline caches need to be reset. */ If generic words were redefined, inline caches need to be reset. */

View File

@ -33,7 +33,7 @@ void factor_vm::load_code_heap(FILE* file, image_header* h, vm_parameters* p) {
if (h->code_size > p->code_size) if (h->code_size > p->code_size)
fatal_error("Code heap too small to fit image", h->code_size); fatal_error("Code heap too small to fit image", h->code_size);
init_code_heap(p->code_size); code = new code_heap(p->code_size);
if (h->code_size != 0) { if (h->code_size != 0) {
size_t bytes_read = size_t bytes_read =

View File

@ -587,7 +587,6 @@ struct factor_vm {
code->allocator->iterate(iter); code->allocator->iterate(iter);
} }
void init_code_heap(cell size);
void update_code_heap_words(bool reset_inline_caches); void update_code_heap_words(bool reset_inline_caches);
void initialize_code_blocks(); void initialize_code_blocks();
void primitive_modify_code_heap(); void primitive_modify_code_heap();