]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/compiler/cfg/linear-scan/linear-scan-tests.factor
compiler.*: use block>cfg and insns>block in many tests instead of wordier code
[factor.git] / basis / compiler / cfg / linear-scan / linear-scan-tests.factor
index ad97fd48c2cb2596c9dee6f3076803f0fcbfe65f..94a43dc28ac4f4576bda4b1711b1b0b3ee1aed02 100644 (file)
@@ -19,7 +19,8 @@ compiler.cfg.linear-scan.allocation
 compiler.cfg.linear-scan.allocation.state
 compiler.cfg.linear-scan.allocation.splitting
 compiler.cfg.linear-scan.allocation.spilling
-compiler.cfg.linear-scan.debugger ;
+compiler.cfg.linear-scan.debugger
+compiler.cfg.utilities ;
 FROM: namespaces => set ;
 IN: compiler.cfg.linear-scan.tests
 
@@ -37,7 +38,7 @@ V{
 } 0 test-bb
 
 : test-live-intervals ( -- )
-    cfg new 0 get >>entry
+    0 get block>cfg
     [ cfg set ] [ number-instructions ] [ compute-live-intervals ] tri
     2drop ;