Fix and clean up stage1 bootstrap
parent
ce60f3c6b6
commit
6cdf4de4eb
|
@ -554,12 +554,19 @@ M: quotation '
|
||||||
: fixup-header ( -- )
|
: fixup-header ( -- )
|
||||||
heap-size data-heap-size-offset fixup ;
|
heap-size data-heap-size-offset fixup ;
|
||||||
|
|
||||||
|
: build-generics ( -- )
|
||||||
|
[
|
||||||
|
all-words
|
||||||
|
[ generic? ] filter
|
||||||
|
[ make-generic ] each
|
||||||
|
] with-compilation-unit ;
|
||||||
|
|
||||||
: build-image ( -- image )
|
: build-image ( -- image )
|
||||||
800000 <vector> image set
|
800000 <vector> image set
|
||||||
20000 <hashtable> objects set
|
20000 <hashtable> objects set
|
||||||
emit-image-header t, 0, 1, -1,
|
emit-image-header t, 0, 1, -1,
|
||||||
"Building generic words..." print flush
|
"Building generic words..." print flush
|
||||||
remake-generics
|
build-generics
|
||||||
"Serializing words..." print flush
|
"Serializing words..." print flush
|
||||||
emit-words
|
emit-words
|
||||||
"Serializing JIT data..." print flush
|
"Serializing JIT data..." print flush
|
||||||
|
|
|
@ -31,30 +31,31 @@ architecture get {
|
||||||
! Now we have ( syntax-quot arch-quot layouts-quot ) on the stack
|
! Now we have ( syntax-quot arch-quot layouts-quot ) on the stack
|
||||||
|
|
||||||
! Bring up a bare cross-compiling vocabulary.
|
! Bring up a bare cross-compiling vocabulary.
|
||||||
"syntax" vocab vocab-words bootstrap-syntax set {
|
"syntax" vocab vocab-words bootstrap-syntax set
|
||||||
dictionary
|
|
||||||
new-classes
|
H{ } clone dictionary set
|
||||||
changed-definitions changed-generics changed-effects
|
H{ } clone root-cache set
|
||||||
outdated-generics forgotten-definitions
|
H{ } clone source-files set
|
||||||
root-cache source-files update-map implementors-map
|
H{ } clone update-map set
|
||||||
} [ H{ } clone swap set ] each
|
H{ } clone implementors-map set
|
||||||
|
|
||||||
init-caches
|
init-caches
|
||||||
|
|
||||||
! Vocabulary for slot accessors
|
|
||||||
"accessors" create-vocab drop
|
|
||||||
|
|
||||||
bootstrapping? on
|
bootstrapping? on
|
||||||
|
|
||||||
call( -- )
|
call( -- )
|
||||||
call( -- )
|
call( -- )
|
||||||
call( -- )
|
|
||||||
|
! Vocabulary for slot accessors
|
||||||
|
"accessors" create-vocab drop
|
||||||
|
|
||||||
! After we execute bootstrap/layouts
|
! After we execute bootstrap/layouts
|
||||||
num-types get f <array> builtins set
|
num-types get f <array> builtins set
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
||||||
|
call( -- )
|
||||||
|
|
||||||
! Create some empty vocabs where the below primitives and
|
! Create some empty vocabs where the below primitives and
|
||||||
! classes will go
|
! classes will go
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue