1 ;;;; type-based constants
3 ;;;; This software is part of the SBCL system. See the README file for
6 ;;;; This software is derived from the CMU CL system, which was
7 ;;;; written at Carnegie Mellon University and released into the
8 ;;;; public domain. The software is in the public domain and is
9 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
10 ;;;; files for more information.
14 ;;; FIXME: It's clever using :SUFFIX -TYPE for these things, but it's
15 ;;; a pain for people just learning to find their way around the code
16 ;;; who want to use lexical search to figure out where things like
17 ;;; EVEN-FIXNUM type are defined. Remove the :SUFFIXes and just expand
18 ;;; out the full names. Or even define them in DEF-FROB EVEN-FIXNUM-TYPE
19 ;;; style so searches like 'def.*even-fixnum-type' can find them.
21 ;;; the main types. These types are represented by the low three bits
22 ;;; of the pointer or immediate object.
23 (eval-when (:compile-toplevel :load-toplevel :execute)
24 ;; The EVAL-WHEN is necessary (at least for Lispworks), because the
25 ;; second DEFENUM uses the value of OTHER-IMMEDIATE-0-TYPE, which is
26 ;; defined in the first DEFENUM. -- AL 20000216
27 (defenum (:suffix -type)
37 ;;; the heap types. Each of these types is in the header of objects in
39 (defenum (:suffix -type
40 :start (+ (ash 1 lowtag-bits) other-immediate-0-type)
41 :step (ash 1 (1- lowtag-bits)))
46 #!+long-float long-float
50 #!+long-float complex-long-float
56 simple-array-unsigned-byte-2
57 simple-array-unsigned-byte-4
58 simple-array-unsigned-byte-8
59 simple-array-unsigned-byte-16
60 simple-array-unsigned-byte-32
61 simple-array-signed-byte-8
62 simple-array-signed-byte-16
63 simple-array-signed-byte-30
64 simple-array-signed-byte-32
65 simple-array-single-float
66 simple-array-double-float
67 #!+long-float simple-array-long-float
68 simple-array-complex-single-float
69 simple-array-complex-double-float
70 #!+long-float simple-array-complex-long-float
79 funcallable-instance-header
82 closure-function-header
83 #!-gengc return-pc-header
84 #!+gengc forwarding-pointer
95 ;;; the different vector subtypes
96 (defenum (:prefix vector- :suffix -subtype)