aboutsummaryrefslogtreecommitdiff
path: root/src/interp/g-opt.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-05-02 01:02:57 +0000
committerdos-reis <gdr@axiomatics.org>2011-05-02 01:02:57 +0000
commit1906e73ab030ad23f1f6269acfed69703c8c40d6 (patch)
treeb00af81c96b09e67a5634aa0e21d3b9a9ea6419d /src/interp/g-opt.boot
parent786cd98c9ab4543bb9d4a901a3d71497dd858aa5 (diff)
downloadopen-axiom-1906e73ab030ad23f1f6269acfed69703c8c40d6.tar.gz
more cleanup
Diffstat (limited to 'src/interp/g-opt.boot')
-rw-r--r--src/interp/g-opt.boot8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interp/g-opt.boot b/src/interp/g-opt.boot
index 23648b53..356f80d8 100644
--- a/src/interp/g-opt.boot
+++ b/src/interp/g-opt.boot
@@ -42,7 +42,7 @@ $optimizableConstructorNames := $SystemInlinableConstructorNames
++ Return true if the domain `dom' is an instance of a functor
++ that has been nominated for inlining.
optimizableDomain? dom ==
- opOf dom in $optimizableConstructorNames
+ symbolMember?(opOf dom,$optimizableConstructorNames)
++ Register the domain `dom' for inlining.
nominateForInlining dom ==
@@ -73,7 +73,7 @@ changeVariableDefinitionToStore(form,vars) ==
atomic? form or form.op is 'CLOSEDFN => vars
form is ['%LET,v,expr] =>
vars := changeVariableDefinitionToStore(expr,vars)
- if v in vars then
+ if symbolMember?(v,vars) then
form.op := '%store
else
vars := [v,:vars]
@@ -94,7 +94,7 @@ changeVariableDefinitionToStore(form,vars) ==
vars' := [v,:vars']
changeVariableDefinitionToStore(third form,vars')
vars
- form.op in $AbstractionOperator =>
+ abstractionOperator? form.op =>
changeVariableDefinitionToStore(third form,[:second form,:vars])
vars
for x in form repeat
@@ -180,7 +180,7 @@ simplifyVMForm x ==
atomic? x => x
x.op is 'CLOSEDFN => x
atom x.op =>
- x is [op,vars,body] and op in $AbstractionOperator =>
+ x is [op,vars,body] and abstractionOperator? op =>
third(x) := simplifyVMForm body
x
if x.op is 'IF then