diff --git a/library/alien/compiler.factor b/library/alien/compiler.factor index 2d04747589..97277c4254 100644 --- a/library/alien/compiler.factor +++ b/library/alien/compiler.factor @@ -159,5 +159,8 @@ M: compound (uncrossref) dup f "infer-effect" set-word-prop dup f "base-case" set-word-prop dup f "no-effect" set-word-prop + dup f "inline" set-word-prop + dup f "foldable" set-word-prop + dup f "flushable" set-word-prop decompile ] ifte ; diff --git a/library/bootstrap/boot-stage2.factor b/library/bootstrap/boot-stage2.factor index 3e3ba54c6f..df106bac85 100644 --- a/library/bootstrap/boot-stage2.factor +++ b/library/bootstrap/boot-stage2.factor @@ -1,8 +1,24 @@ ! Copyright (C) 2004, 2005 Slava Pestov. ! See http://factor.sf.net/license.txt for BSD license. -USING: alien assembler command-line compiler generic hashtables -kernel lists memory namespaces parser sequences io unparser -words ; +USING: alien assembler command-line compiler errors generic +hashtables io kernel lists memory namespaces parser sequences +unparser words ; + +: restarts. ( menu -- ) + "Restarts:" print + dup length [ unparse print ". " write first print ] 2each + "> " write flush + ; + +: try-resource ( path -- ) + "Loading " write dup print + [ + run-resource + ] [ + [ + "Error loading resource. Restarts:" print + ] when* + ] catch ; : pull-in ( ? list -- ) swap [ diff --git a/library/compiler/linearizer.factor b/library/compiler/linearizer.factor index 29cbeabdf4..8b8435fa3b 100644 --- a/library/compiler/linearizer.factor +++ b/library/compiler/linearizer.factor @@ -2,7 +2,7 @@ ! See http://factor.sf.net/license.txt for BSD license. IN: compiler-frontend USING: compiler-backend errors generic lists inference kernel -kernel-internals math namespaces prettyprint sequences +math namespaces prettyprint sequences strings words ; GENERIC: linearize-node* ( node -- ) @@ -26,7 +26,6 @@ M: #label linearize-node* ( node -- )