compiler.cfg.utilities: make it so block>cfg initializes spill-area-align

db4
Björn Lindqvist 2015-07-29 12:51:05 +02:00
parent fba2eb9ace
commit 22b871d82e
2 changed files with 3 additions and 3 deletions

View File

@ -106,9 +106,9 @@ ${
] unit-test
! align-spill-area
{ t } [
${ cell } [
3 { } insns>cfg [ align-spill-area ] keep
spill-area-align>> cell =
spill-area-align>>
] unit-test
! inactive-intervals-for

View File

@ -6,7 +6,7 @@ kernel locals make math namespaces sequences sets ;
IN: compiler.cfg.utilities
: block>cfg ( bb -- cfg )
cfg new swap >>entry ;
f f rot <cfg> ;
: insns>block ( insns n -- bb )
<basic-block> swap >>number swap V{ } like >>instructions ;