Update user-space code for modify-code-heap primitive change

db4
Slava Pestov 2009-01-24 20:17:11 -06:00
parent ed1a2855b5
commit 60f36cd9c8
4 changed files with 5 additions and 7 deletions

View File

@ -110,7 +110,7 @@ t compile-dependencies? set-global
[ (compile) yield-hook get call ] slurp-deque ;
: decompile ( word -- )
f 2array 1array t modify-code-heap ;
f 2array 1array modify-code-heap ;
: optimized-recompile-hook ( words -- alist )
[

View File

@ -643,7 +643,7 @@ M: object infer-call*
\ dll-valid? { object } { object } define-primitive
\ modify-code-heap { array object } { } define-primitive
\ modify-code-heap { array } { } define-primitive
\ unimplemented { } { } define-primitive

View File

@ -11,7 +11,7 @@ accessors namespaces fry ;
! Non-optimizing compiler bugs
[ 1 1 ] [
"A" "B" <word> [ [ 1 ] dip ] >>def dup f 2array 1array f modify-code-heap
"A" "B" <word> [ [ 1 ] dip ] >>def dup f 2array 1array modify-code-heap
1 swap execute
] unit-test

View File

@ -66,9 +66,7 @@ GENERIC: definitions-changed ( assoc obj -- )
dup dup changed-vocabs update ;
: compile ( words -- )
recompile-hook get call
dup [ drop crossref? ] assoc-contains?
modify-code-heap ;
recompile-hook get call modify-code-heap ;
SYMBOL: outdated-tuples
SYMBOL: update-tuples-hook
@ -145,7 +143,7 @@ SYMBOL: remake-generics-hook
call-recompile-hook
call-update-tuples-hook
unxref-forgotten-definitions
dup [ drop crossref? ] assoc-contains? modify-code-heap ;
modify-code-heap ;
: with-nested-compilation-unit ( quot -- )
[