diff options
author | dos-reis <gdr@axiomatics.org> | 2009-05-10 16:57:30 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2009-05-10 16:57:30 +0000 |
commit | fe5fc814694f1a1a04175bc94d15acfe1c259146 (patch) | |
tree | e20fe70c60b1dceead888d00a1c2ca34b119405a /src/interp | |
parent | 05e0d43a6021eefccbf2ba0f68c1d72089a102b1 (diff) | |
download | open-axiom-fe5fc814694f1a1a04175bc94d15acfe1c259146.tar.gz |
* interp/nrunopt.boot (makeGoGetSlot): Adjust call to
makeCompactSigCode.
(makeCompactDirect1): Likewise.
(makeCompactSigCode): Drop second parameter.
Diffstat (limited to 'src/interp')
-rw-r--r-- | src/interp/nrunopt.boot | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/interp/nrunopt.boot b/src/interp/nrunopt.boot index 39b52bc8..c3aa691f 100644 --- a/src/interp/nrunopt.boot +++ b/src/interp/nrunopt.boot @@ -69,7 +69,7 @@ makeGoGetSlot(item,index) == --these parts of the $byteVec are created first; see also makeCompactDirect [sig,whereToGo,op,:flag] := item n := #sig - 1 - newcode := [n,whereToGo,:makeCompactSigCode(sig,nil),index] + newcode := [n,whereToGo,:makeCompactSigCode sig,index] $byteVec := [newcode,:$byteVec] curAddress := $byteAddress $byteAddress := $byteAddress + n + 4 @@ -101,7 +101,7 @@ makeCompactDirect1(op,items) == r = ['Subsumed] => n := #sig - 1 $byteAddress := $byteAddress + n + 4 - [n,0,:makeCompactSigCode(sig,$isOpPackageName),0] --always followed by subsuming signature + [n,0,:makeCompactSigCode sig,0] --always followed by subsuming signature --identified by a 0 in slot position if r is [n,:s] then slot := @@ -118,7 +118,7 @@ makeCompactDirect1(op,items) == slot := 1 --signals that operation is not present n := #sig - 1 $byteAddress := $byteAddress + n + 4 - res := [n,predCode,:makeCompactSigCode(sig,$isOpPackageName),slot] + res := [n,predCode,:makeCompactSigCode sig,slot] res orderBySubsumption items == @@ -137,14 +137,12 @@ orderBySubsumption items == z := insert(b,z) --mark a signature as already present [:y,:[w for (w := [c,:.]) in acc | not member(c,z)]] --add those not subsuming -makeCompactSigCode(sig,$isOpPackageName) == [fn for x in sig] where ---$isOpPackageName = true only for an exported operation of a default package +makeCompactSigCode sig == [fn for x in sig] where fn() == - x = '_$_$ => 2 - x = '$ => 0 + x = "$$" => 2 + x = "$" => 0 not INTEGERP x => systemError ['"code vector slot is ",x,'"; must be number"] --- x = 6 and $isOpPackageName => 0 --treat slot 6 as $ for default packages x --======================================================================= @@ -194,9 +192,8 @@ stuffSlot(dollar,i,item) == sayBrightlyNT '"Unexpected constant environment!!" pp devaluate b nil --- [dollar,i,:item] --old form --- $isOpPackageName = 'T => SUBST(0,6,item) - item --new form + item + --======================================================================= -- Generate Slot 2 Attribute Alist --======================================================================= |