Compiler and module system fix

slava 2006-08-12 19:58:32 +00:00
parent 61e1dff787
commit 577f4b26ff
4 changed files with 6 additions and 5 deletions

View File

@ -105,6 +105,7 @@
+ misc:
- loading the image should not exhaust nursery space
- compiler tests are not as reliable now
- problem if major gc happens during relocation
- in fact relocation should not cons at all

View File

@ -83,8 +83,7 @@ SYMBOL: label-table
{
{ [ dup compiled-xts get hash-member? ] [ drop t ] }
{ [ dup changed-words get hash-member? ] [ drop f ] }
{ [ dup compiled? ] [ drop t ] }
{ [ t ] [ drop f ] }
{ [ t ] [ compiled? ] }
} cond ;
: with-compiler ( quot -- )

View File

@ -28,8 +28,10 @@ H{ } clone modules set-global
: module modules get hash ;
: load-module ( name -- )
"Loading module " write dup write "..." print
[ dup module-def run-resource ] assert-depth drop ;
[
"Loading module " write dup write "..." print
[ dup module-def run-resource ] assert-depth drop
] no-parse-hook ;
: (require) ( name -- )
dup module [ drop ] [ load-module ] if ;

View File

@ -4,7 +4,6 @@ USING: compiler kernel math math-internals sequences test ;
: empty-loop-0 ( n -- )
dup 0 fixnum< [ drop ] [ 1 fixnum-fast empty-loop-0 ] if ;
: empty-loop-1 ( n -- )
[ ] times ;