aboutsummaryrefslogtreecommitdiff
path: root/src/interp/nruncomp.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-11-24 00:14:26 +0000
committerdos-reis <gdr@axiomatics.org>2011-11-24 00:14:26 +0000
commit39c21d65868a04d915dc03b283839e221f37d498 (patch)
tree18be8d5a88a3e02dda7acc79a93a6f588871d0fb /src/interp/nruncomp.boot
parent3726db8810fbc954aa8782dd9b4b638f132c0aec (diff)
downloadopen-axiom-39c21d65868a04d915dc03b283839e221f37d498.tar.gz
* interp/define.boot ($CheckVectorList): Remove.
(compDefineFunctor1): Do not bind it. (reportOnFunctorCompilation): Do not call displayMissingFunctions. (displayMissingFunctions): Remove as useless. * interp/functor.boot (SetFunctionSlots): Do not set slot in the first vector of $catvecList. * interp/nruncomp.boot (buildFunctor): Remove makeCatvecCode, emptyVector, domainShell. Do not call NRTcheckVector. (NRTcheckVector): Remove as useless.
Diffstat (limited to 'src/interp/nruncomp.boot')
-rw-r--r--src/interp/nruncomp.boot30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/interp/nruncomp.boot b/src/interp/nruncomp.boot
index 5a130cb7..319c5f23 100644
--- a/src/interp/nruncomp.boot
+++ b/src/interp/nruncomp.boot
@@ -454,7 +454,6 @@ buildFunctor(db,sig,code,$locals,$e) ==
--LOCAL BOUND FLUID VARIABLES:
$GENNO: local:= 0 --bound in compDefineFunctor1, then as parameter here
- $catvecList: local := nil --list of vectors v1..vn for each view
$hasCategoryAlist: local := nil --list of GENSYMs bound to (HasCategory ..) items
$catsig: local := nil --target category
$SetFunctions: local := nil --copy of p view with preds telling when fnct defined
@@ -478,16 +477,8 @@ buildFunctor(db,sig,code,$locals,$e) ==
-- a list, one %for each element of catvecListMaker
-- indicating under what conditions this
-- category should be present. true => always
- makeCatvecCode := first catvecListMaker
- emptyVector := vector []
- domainShell := newShell($NRTbase + $NRTdeltaLength)
- for i in 0..4 repeat
- vectorRef(domainShell,i) := vectorRef($domainShell,i)
- --we will clobber elements; copy since $domainShell may be a cached vector
dbTemplate(db) := newShell($NRTbase + $NRTdeltaLength)
- $SetFunctions := newShell # domainShell
- $catvecList :=
- [domainShell,:[emptyVector for u in categoryAncestors domainShell]]
+ $SetFunctions := newShell # dbTemplate db
-- list of names n1..nn for each view
viewNames := ['$,:[genvar() for u in rest catvecListMaker]]
domname := 'dv_$
@@ -513,7 +504,6 @@ buildFunctor(db,sig,code,$locals,$e) ==
[['stuffDomainSlots,'$],:argStuffCode,
:predBitVectorCode2,storeOperationCode]
- $CheckVectorList := NRTcheckVector domainShell
-- Local bindings
bindings := [:devaluateCode,createDomainCode,
createViewCode,createPredVecCode] where
@@ -543,24 +533,6 @@ buildFunctor(db,sig,code,$locals,$e) ==
SAY ['"time taken in buildFunctor: ",TEMPUS_-FUGIT()-oldtime]
ans
-NRTcheckVector domainShell ==
---RETURNS: an alist (((op,sig),:pred) ...) of missing functions
- alist := nil
- for i in $NRTbase..maxIndex domainShell repeat
---Vector elements can be one of
--- (a) T -- item was marked
--- (b) nil -- ???
--- (c) categoryForm-- it was a domain view; now irrelevant
--- (d) op-signature-- store missing function info in $CheckVectorList
- v := vectorRef(domainShell,i)
- v=true => nil --item is marked; ignore
- v=nil => nil
- v isnt [.,:.] => systemErrorHere '"CheckVector"
- first v isnt [.,:.] => nil --category form; ignore
- assoc(first v,alist) => nil
- alist := [[first v,:vectorRef($SetFunctions,i)],:alist]
- alist
-
NRTsetVector4Part1(siglist,formlist,condlist) ==
$uncondList: local := nil
$condList: local := nil