tools.deploy.shaker: clear MEMO: caches

db4
Joe Groff 2011-12-14 12:44:40 -08:00
parent aa1ad21d72
commit 5557574e1c
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ sets vectors quotations byte-arrays sorting compiler.units
definitions generic generic.standard generic.single
tools.deploy.config combinators combinators.private classes
vocabs.loader.private classes.builtin slots.private grouping
command-line io.pathnames namespaces.private ;
command-line io.pathnames memoize namespaces.private ;
QUALIFIED: bootstrap.stage2
QUALIFIED: classes.private
QUALIFIED: compiler.crossref
@ -237,6 +237,10 @@ IN: tools.deploy.shaker
strip-word-names? [ dup strip-word-names strip-stack-traces ] when
2drop ;
: strip-memoized ( -- )
"Clearing memoized word caches" show
[ memoized? ] instances [ reset-memoized ] each ;
: compiler-classes ( -- seq )
{ "compiler" "stack-checker" }
[ child-vocabs [ words ] map concat [ class? ] filter ]
@ -565,6 +569,7 @@ SYMBOL: deploy-vocab
compress-objects
compress-quotations
strip-words
strip-memoized
clear-megamorphic-caches ;
: die-with ( error original-error -- * )