2010-04-28 04:47:38 -04:00
|
|
|
! Copyright (C) 2010 Slava Pestov.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2010-07-15 17:38:34 -04:00
|
|
|
USING: kernel compiler.cfg.representations
|
|
|
|
compiler.cfg.scheduling compiler.cfg.gc-checks
|
2010-09-06 00:39:45 -04:00
|
|
|
compiler.cfg.write-barrier compiler.cfg.save-contexts
|
|
|
|
compiler.cfg.ssa.destruction compiler.cfg.build-stack-frame
|
|
|
|
compiler.cfg.linear-scan compiler.cfg.stacks.uninitialized ;
|
2010-04-28 04:47:38 -04:00
|
|
|
IN: compiler.cfg.finalization
|
|
|
|
|
|
|
|
: finalize-cfg ( cfg -- cfg' )
|
|
|
|
select-representations
|
2010-07-15 17:38:34 -04:00
|
|
|
schedule-instructions
|
2010-04-28 04:47:38 -04:00
|
|
|
insert-gc-checks
|
2010-09-06 00:39:45 -04:00
|
|
|
eliminate-write-barriers
|
2010-06-13 17:36:08 -04:00
|
|
|
dup compute-uninitialized-sets
|
2010-04-28 04:47:38 -04:00
|
|
|
insert-save-contexts
|
|
|
|
destruct-ssa
|
2010-05-02 18:48:41 -04:00
|
|
|
linear-scan
|
|
|
|
build-stack-frame ;
|