Compiler and module system fix
parent
61e1dff787
commit
577f4b26ff
|
@ -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
|
||||
|
|
|
@ -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 -- )
|
||||
|
|
|
@ -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 ;
|
||||
|
|
|
@ -3,7 +3,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 ;
|
||||
|
|
Loading…
Reference in New Issue