VM: init_code_heap is trivial and only used once, so let's remove it
							parent
							
								
									18ab09e493
								
							
						
					
					
						commit
						b44db91f65
					
				| 
						 | 
				
			
			@ -94,9 +94,6 @@ void code_heap::initialize_all_blocks_set() {
 | 
			
		|||
#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.
 | 
			
		||||
Only needed after redefining an existing word.
 | 
			
		||||
If generic words were redefined, inline caches need to be reset. */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
    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) {
 | 
			
		||||
    size_t bytes_read =
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue