2010-04-28 04:47:38 -04:00
|
|
|
! Copyright (C) 2010 Slava Pestov.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2014-12-13 19:10:21 -05:00
|
|
|
USING: compiler.cfg.build-stack-frame compiler.cfg.gc-checks
|
|
|
|
compiler.cfg.linear-scan compiler.cfg.representations
|
2014-12-31 15:51:15 -05:00
|
|
|
compiler.cfg.save-contexts compiler.cfg.ssa.destruction
|
2016-09-11 14:34:44 -04:00
|
|
|
compiler.cfg.stacks.clearing compiler.cfg.utilities
|
2015-01-01 05:12:58 -05:00
|
|
|
compiler.cfg.write-barrier ;
|
2010-04-28 04:47:38 -04:00
|
|
|
IN: compiler.cfg.finalization
|
|
|
|
|
2014-12-11 15:48:43 -05:00
|
|
|
: finalize-cfg ( cfg -- )
|
|
|
|
{
|
|
|
|
select-representations
|
|
|
|
insert-gc-checks
|
|
|
|
eliminate-write-barriers
|
2015-01-01 05:12:58 -05:00
|
|
|
clear-uninitialized
|
2014-12-11 15:48:43 -05:00
|
|
|
insert-save-contexts
|
|
|
|
destruct-ssa
|
|
|
|
linear-scan
|
|
|
|
build-stack-frame
|
|
|
|
} apply-passes ;
|