aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-05-10 16:57:30 +0000
committerdos-reis <gdr@axiomatics.org>2009-05-10 16:57:30 +0000
commitfe5fc814694f1a1a04175bc94d15acfe1c259146 (patch)
treee20fe70c60b1dceead888d00a1c2ca34b119405a
parent05e0d43a6021eefccbf2ba0f68c1d72089a102b1 (diff)
downloadopen-axiom-fe5fc814694f1a1a04175bc94d15acfe1c259146.tar.gz
* interp/nrunopt.boot (makeGoGetSlot): Adjust call to
makeCompactSigCode. (makeCompactDirect1): Likewise. (makeCompactSigCode): Drop second parameter.
-rw-r--r--src/ChangeLog7
-rw-r--r--src/interp/nrunopt.boot19
2 files changed, 15 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f1c04308..87a954f1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
2009-05-10 Gabriel Dos Reis <gdr@cs.tamu.edu>
+ * interp/nrunopt.boot (makeGoGetSlot): Adjust call to
+ makeCompactSigCode.
+ (makeCompactDirect1): Likewise.
+ (makeCompactSigCode): Drop second parameter.
+
+2009-05-10 Gabriel Dos Reis <gdr@cs.tamu.edu>
+
* interp/g-opt.boot (emitIndirectCall): New.
(optCall): Use it.
(optSpecialCall): Likewise.
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
--=======================================================================