compiler.cfg.*: detached the normalize-height and schedule-instructions passes
those stages cause uninitialized "holes" in the stacks which in turn causes gc errors if stack underflows occurdb4
							parent
							
								
									208f01416d
								
							
						
					
					
						commit
						163fef12f9
					
				| 
						 | 
				
			
			@ -2,15 +2,13 @@
 | 
			
		|||
! See http://factorcode.org/license.txt for BSD license.
 | 
			
		||||
USING: compiler.cfg.build-stack-frame compiler.cfg.gc-checks
 | 
			
		||||
compiler.cfg.linear-scan compiler.cfg.representations
 | 
			
		||||
compiler.cfg.save-contexts compiler.cfg.scheduling
 | 
			
		||||
compiler.cfg.ssa.destruction compiler.cfg.stacks.vacant
 | 
			
		||||
compiler.cfg.utilities compiler.cfg.write-barrier ;
 | 
			
		||||
compiler.cfg.save-contexts compiler.cfg.ssa.destruction
 | 
			
		||||
compiler.cfg.stacks.vacant compiler.cfg.utilities compiler.cfg.write-barrier ;
 | 
			
		||||
IN: compiler.cfg.finalization
 | 
			
		||||
 | 
			
		||||
: finalize-cfg ( cfg -- )
 | 
			
		||||
    {
 | 
			
		||||
        select-representations
 | 
			
		||||
        schedule-instructions
 | 
			
		||||
        insert-gc-checks
 | 
			
		||||
        eliminate-write-barriers
 | 
			
		||||
        compute-vacant-sets
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,6 @@ compiler.cfg.block-joining
 | 
			
		|||
compiler.cfg.branch-splitting
 | 
			
		||||
compiler.cfg.copy-prop
 | 
			
		||||
compiler.cfg.dce
 | 
			
		||||
compiler.cfg.height
 | 
			
		||||
compiler.cfg.ssa.construction
 | 
			
		||||
compiler.cfg.tco
 | 
			
		||||
compiler.cfg.useless-conditionals
 | 
			
		||||
| 
						 | 
				
			
			@ -21,7 +20,6 @@ IN: compiler.cfg.optimizer
 | 
			
		|||
        delete-useless-conditionals
 | 
			
		||||
        split-branches
 | 
			
		||||
        join-blocks
 | 
			
		||||
        normalize-height
 | 
			
		||||
        construct-ssa
 | 
			
		||||
        alias-analysis
 | 
			
		||||
        value-numbering
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue