]> gitweb.factorcode.org Git - factor.git/commitdiff
compiler.tree.recursive: more use of hash-sets.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 8 Mar 2013 20:34:23 +0000 (12:34 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 8 Mar 2013 20:34:23 +0000 (12:34 -0800)
basis/compiler/tree/recursive/recursive.factor

index ccd4b476437f170f83bca278208098d478288220..e6b8a7ea0060907095eabb0c027d37d27243e941 100644 (file)
@@ -68,9 +68,9 @@ M: node node-call-graph 2drop ;
 
 SYMBOLS: not-loops recursive-nesting ;
 
-: not-a-loop ( label -- ) not-loops get conjoin ;
+: not-a-loop ( label -- ) not-loops get adjoin ;
 
-: not-a-loop? ( label -- ? ) not-loops get key? ;
+: not-a-loop? ( label -- ? ) not-loops get in? ;
 
 : non-tail-calls ( call-graph-node -- seq )
     calls>> [ tail?>> not ] filter ;
@@ -112,7 +112,7 @@ SYMBOL: changed?
     inline recursive
 
 : detect-loops ( call-graph -- )
-    H{ } clone not-loops set
+    HS{ } clone not-loops set
     V{ } clone recursive-nesting set
     [ visit-back-edges ]
     [ '[ _ detect-cross-frame-calls ] while-changing ]