]> gitweb.factorcode.org Git - factor.git/commitdiff
'not', 'and' are no longer inline to enable compiler optimizations
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 23 Jul 2008 05:16:41 +0000 (00:16 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 23 Jul 2008 05:16:41 +0000 (00:16 -0500)
core/kernel/kernel.factor

index 2540ee39cdcf2f89243c1043a40a2fa2a42a356d..68feb7a94aaa25dc6295b3eced2cd52f01b59773 100755 (executable)
@@ -165,11 +165,15 @@ GENERIC: boa ( ... class -- tuple )
     compose compose ; inline
 
 ! Booleans
-: not ( obj -- ? ) f eq? ; inline
+: not ( obj -- ? )
+    #! Not inline because its special-cased by compiler.
+    f eq? ;
 
-: >boolean ( obj -- ? ) t f ? ; inline
+: and ( obj1 obj2 -- ? )
+    #! Not inline because its special-cased by compiler.
+    over ? ;
 
-: and ( obj1 obj2 -- ? ) over ? ; inline
+: >boolean ( obj -- ? ) t f ? ; inline
 
 : or ( obj1 obj2 -- ? ) dupd ? ; inline