Cleanups
							parent
							
								
									8872c40b1e
								
							
						
					
					
						commit
						abf7912ae7
					
				| 
						 | 
				
			
			@ -125,10 +125,7 @@ VM_C_API void init_factor(vm_parameters *p)
 | 
			
		|||
	load_image(p);
 | 
			
		||||
	init_c_io();
 | 
			
		||||
	init_inline_caching(p->max_pic_size);
 | 
			
		||||
 | 
			
		||||
#ifndef FACTOR_DEBUG
 | 
			
		||||
	init_signals();
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	if(p->console)
 | 
			
		||||
		open_console();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,7 +20,14 @@ struct gc_root : public tagged<T>
 | 
			
		|||
	const gc_root<T>& operator=(const T *x) { tagged<T>::operator=(x); return *this; }
 | 
			
		||||
	const gc_root<T>& operator=(const cell &x) { tagged<T>::operator=(x); return *this; }
 | 
			
		||||
 | 
			
		||||
	~gc_root() { cell old = gc_local_pop(); assert(old == (cell)this); }
 | 
			
		||||
	~gc_root() {
 | 
			
		||||
#ifdef FACTOR_DEBUG
 | 
			
		||||
		cell old = gc_local_pop();
 | 
			
		||||
		assert(old == (cell)this);
 | 
			
		||||
#else
 | 
			
		||||
		gc_local_pop();
 | 
			
		||||
#endif
 | 
			
		||||
	}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* A similar hack for the bignum implementation */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -323,11 +323,11 @@ fixnum quot_code_offset_to_scan(cell quot_, cell offset)
 | 
			
		|||
	gc_root<quotation> quot(quot_);
 | 
			
		||||
	gc_root<array> array(quot->array);
 | 
			
		||||
 | 
			
		||||
	quotation_jit jit(quot.value(),false,false);
 | 
			
		||||
	jit.compute_position(offset);
 | 
			
		||||
	jit.iterate_quotation();
 | 
			
		||||
	quotation_jit compiler(quot.value(),false,false);
 | 
			
		||||
	compiler.compute_position(offset);
 | 
			
		||||
	compiler.iterate_quotation();
 | 
			
		||||
 | 
			
		||||
	return jit.get_position();
 | 
			
		||||
	return compiler.get_position();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
VM_ASM_API cell lazy_jit_compile_impl(cell quot_, stack_frame *stack)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue