Skip to content
Snippets Groups Projects
Commit 48bdb65c authored by ram's avatar ram
Browse files

If we see a reference to a named constant that isn't a number or charcter,

then convert it as SYMBOL-FUNCTION.
parent df6b4f21
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir2tran.lisp,v 1.33 1991/11/09 22:08:58 ram Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir2tran.lisp,v 1.34 1991/11/25 12:56:07 ram Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -161,7 +161,13 @@
(vop value-cell-ref node block tn res)
(emit-move node block tn res))))
(constant
(emit-move node block (constant-tn leaf) res))
(if (and name
(not (typep (constant-value leaf) '(or number character))))
(let ((name-tn (emit-constant name)))
(if (policy node (zerop safety))
(vop fast-symbol-value node block name-tn res)
(vop symbol-value node block name-tn res)))
(emit-move node block (constant-tn leaf) res)))
(functional
(ir2-convert-closure node block leaf res))
(global-var
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment