| 
									
										
										
										
											2014-11-15 01:13:43 -05:00
										 |  |  | USING: assocs compiler.cfg compiler.cfg.stack-frame help.markup help.syntax ;
 | 
					
						
							|  |  |  | IN: compiler.cfg.build-stack-frame | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ARTICLE: "compiler.cfg.build-stack-frame" "Computing stack frame size and layout" | 
					
						
							|  |  |  | "The " { $vocab-link "compiler.cfg.build-stack-frame" } " vocab builds stack frames for cfg:s." ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-10 10:17:19 -05:00
										 |  |  | HELP: param-area-size | 
					
						
							|  |  |  | { $var-description "Temporary variable used when building stack frames to calculate the parameter area size." } | 
					
						
							|  |  |  | { $see-also build-stack-frame } ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-15 01:13:43 -05:00
										 |  |  | HELP: frame-required? | 
					
						
							|  |  |  | { $var-description "Whether the word being compiled requires a stack frame or not. Most words does, but very simple words does not." } ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | HELP: compute-stack-frame | 
					
						
							|  |  |  | { $values { "cfg" cfg } { "stack-frame/f" stack-frame } } | 
					
						
							|  |  |  | { $description "Initializes a stack frame for a cfg, if it needs one." } | 
					
						
							|  |  |  | { $see-also frame-required? } ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-12-12 18:22:22 -05:00
										 |  |  | HELP: finalize-stack-frame | 
					
						
							|  |  |  | { $values { "stack-frame" stack-frame } } | 
					
						
							|  |  |  | { $description "Calculates and stores the " { $slot "allot-area-base" } ", " { $slot "spill-area-base" } " and " { $slot "total-size" } " slots of a stack frame." } ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-15 01:13:43 -05:00
										 |  |  | ABOUT: "compiler.cfg.build-stack-frame" |