| 
									
										
										
										
											2010-06-11 20:06:00 -04:00
										 |  |  | #include "master.hpp"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-11 22:04:08 -04:00
										 |  |  | namespace factor { | 
					
						
							| 
									
										
										
										
											2010-06-11 20:06:00 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-11 22:04:08 -04:00
										 |  |  | cell gc_info::return_address_index(cell return_address) { | 
					
						
							| 
									
										
										
										
											2013-05-13 00:28:25 -04:00
										 |  |  |   uint32_t* return_address_array = return_addresses(); | 
					
						
							| 
									
										
										
										
											2010-06-11 20:06:00 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-11 22:04:08 -04:00
										 |  |  |   for (cell i = 0; i < return_address_count; i++) { | 
					
						
							|  |  |  |     if (return_address == return_address_array[i]) | 
					
						
							|  |  |  |       return i; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2010-06-11 20:06:00 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-13 00:53:47 -04:00
										 |  |  |   return (cell)-1; | 
					
						
							| 
									
										
										
										
											2010-06-11 20:06:00 -04:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |