0.pre7.14:
[sbcl.git] / src / code / target-type.lisp
index 0a9e068..91757e6 100644 (file)
 
 ;;; Pull the type specifier out of a function object.
 (defun extract-function-type (fun)
-  (if (sb!eval:interpreted-function-p fun)
-      (sb!eval:interpreted-function-type fun)
-      (typecase fun
-       (byte-function (byte-function-type fun))
-       (byte-closure (byte-function-type (byte-closure-function fun)))
+  (cond #!+sb-interpreter
+       ((sb!eval:interpreted-function-p fun)
+        (sb!eval:interpreted-function-type fun))
        (t
-        (specifier-type (%function-type (%closure-function fun)))))))
+        (typecase fun
+          (byte-function (byte-function-type fun))
+          (byte-closure (byte-function-type (byte-closure-function fun)))
+          (t
+           (specifier-type (%function-type (%closure-function fun))))))))
 \f
 ;;;; miscellaneous interfaces