(car :ref-trans car :set-trans sb!c::%rplaca :init :arg)
(cdr :ref-trans cdr :set-trans sb!c::%rplacd :init :arg))
(define-primitive-object (instance :lowtag instance-pointer-lowtag
(car :ref-trans car :set-trans sb!c::%rplaca :init :arg)
(cdr :ref-trans cdr :set-trans sb!c::%rplacd :init :arg))
(define-primitive-object (instance :lowtag instance-pointer-lowtag
(digits :rest-p t :c-type #!-alpha "long" #!+alpha "u32"))
(define-primitive-object (ratio :type ratio
(digits :rest-p t :c-type #!-alpha "long" #!+alpha "u32"))
(define-primitive-object (ratio :type ratio
#!+#.(cl:if (cl:= sb!vm:n-word-bits 32) '(and) '(or))
(define-primitive-object (single-float :lowtag other-pointer-lowtag
#!+#.(cl:if (cl:= sb!vm:n-word-bits 32) '(and) '(or))
(define-primitive-object (single-float :lowtag other-pointer-lowtag
#!-x86-64 (filler)
(value :c-type "double" :length #!-x86-64 2 #!+x86-64 1))
#!+long-float
(define-primitive-object (long-float :lowtag other-pointer-lowtag
#!-x86-64 (filler)
(value :c-type "double" :length #!-x86-64 2 #!+x86-64 1))
#!+long-float
(define-primitive-object (long-float :lowtag other-pointer-lowtag
#!+sparc (filler)
(value :c-type "long double" :length #!+x86 3 #!+sparc 4))
(define-primitive-object (complex :type complex
#!+sparc (filler)
(value :c-type "long double" :length #!+x86 3 #!+sparc 4))
(define-primitive-object (complex :type complex
- :lowtag other-pointer-lowtag
- :widetag complex-widetag
- :alloc-trans %make-complex)
+ :lowtag other-pointer-lowtag
+ :widetag complex-widetag
+ :alloc-trans %make-complex)
;; FILL-POINTER of an ARRAY is in the same place as LENGTH of a
;; VECTOR -- see SHRINK-VECTOR.
(fill-pointer :type index
;; FILL-POINTER of an ARRAY is in the same place as LENGTH of a
;; VECTOR -- see SHRINK-VECTOR.
(fill-pointer :type index
- :ref-trans %array-fill-pointer
- :ref-known (flushable foldable)
- :set-trans (setf %array-fill-pointer)
- :set-known (unsafe))
+ :ref-trans %array-fill-pointer
+ :ref-known (flushable foldable)
+ :set-trans (setf %array-fill-pointer)
+ :set-known (unsafe))
- :ref-trans %array-fill-pointer-p
- :ref-known (flushable foldable)
- :set-trans (setf %array-fill-pointer-p)
- :set-known (unsafe))
+ :ref-trans %array-fill-pointer-p
+ :ref-known (flushable foldable)
+ :set-trans (setf %array-fill-pointer-p)
+ :set-known (unsafe))
- :ref-trans %array-available-elements
- :ref-known (flushable foldable)
- :set-trans (setf %array-available-elements)
- :set-known (unsafe))
+ :ref-trans %array-available-elements
+ :ref-known (flushable foldable)
+ :set-trans (setf %array-available-elements)
+ :set-known (unsafe))
- :ref-trans %array-data-vector
- :ref-known (flushable foldable)
- :set-trans (setf %array-data-vector)
- :set-known (unsafe))
+ :ref-trans %array-data-vector
+ :ref-known (flushable foldable)
+ :set-trans (setf %array-data-vector)
+ :set-known (unsafe))
- :ref-trans %array-displacement
- :ref-known (flushable foldable)
- :set-trans (setf %array-displacement)
- :set-known (unsafe))
+ :ref-trans %array-displacement
+ :ref-known (flushable foldable)
+ :set-trans (setf %array-displacement)
+ :set-known (unsafe))
- :ref-trans %array-displaced-p
- :ref-known (flushable foldable)
- :set-trans (setf %array-displaced-p)
- :set-known (unsafe))
+ :ref-trans %array-displaced-p
+ :ref-known (flushable foldable)
+ :set-trans (setf %array-displaced-p)
+ :set-known (unsafe))
;; FILL-POINTER of an ARRAY is in the same place as LENGTH of a
;; VECTOR -- see SHRINK-VECTOR.
(length :ref-trans sb!c::vector-length
;; FILL-POINTER of an ARRAY is in the same place as LENGTH of a
;; VECTOR -- see SHRINK-VECTOR.
(length :ref-trans sb!c::vector-length
(data :rest-p t :c-type #!-alpha "unsigned long" #!+alpha "u32"))
(define-primitive-object (code :type code-component
(data :rest-p t :c-type #!-alpha "unsigned long" #!+alpha "u32"))
(define-primitive-object (code :type code-component
(name :ref-trans fdefn-name)
(fun :type (or function null) :ref-trans fdefn-fun)
(raw-addr :c-type #!-alpha "char *" #!+alpha "u32"))
(name :ref-trans fdefn-name)
(fun :type (or function null) :ref-trans fdefn-fun)
(raw-addr :c-type #!-alpha "char *" #!+alpha "u32"))
;;; a simple function (as opposed to hairier things like closures
;;; which are also subtypes of Common Lisp's FUNCTION type)
(define-primitive-object (simple-fun :type function
;;; a simple function (as opposed to hairier things like closures
;;; which are also subtypes of Common Lisp's FUNCTION type)
(define-primitive-object (simple-fun :type function
- ;; KLUDGE: There's no :SET-KNOWN, :SET-TRANS, :REF-KNOWN, or
- ;; :REF-TRANS here in this case. Instead, there's separate
- ;; DEFKNOWN/DEFINE-VOP/DEFTRANSFORM stuff in
- ;; compiler/x86/system.lisp to define and declare them by
- ;; hand. I don't know why this is, but that's (basically)
- ;; the way it was done in CMU CL, and it works. (It's not
- ;; exactly the same way it was done in CMU CL in that CMU
- ;; CL's allows duplicate DEFKNOWNs, blithely overwriting any
- ;; previous data associated with the previous DEFKNOWN, and
- ;; that property was used to mask the definitions here. In
- ;; SBCL as of 0.6.12.64 that's not allowed -- too confusing!
- ;; -- so we have to explicitly suppress the DEFKNOWNish
- ;; stuff here in order to allow this old hack to work in the
- ;; new world. -- WHN 2001-08-82
- )
+ ;; KLUDGE: There's no :SET-KNOWN, :SET-TRANS, :REF-KNOWN, or
+ ;; :REF-TRANS here in this case. Instead, there's separate
+ ;; DEFKNOWN/DEFINE-VOP/DEFTRANSFORM stuff in
+ ;; compiler/x86/system.lisp to define and declare them by
+ ;; hand. I don't know why this is, but that's (basically)
+ ;; the way it was done in CMU CL, and it works. (It's not
+ ;; exactly the same way it was done in CMU CL in that CMU
+ ;; CL's allows duplicate DEFKNOWNs, blithely overwriting any
+ ;; previous data associated with the previous DEFKNOWN, and
+ ;; that property was used to mask the definitions here. In
+ ;; SBCL as of 0.6.12.64 that's not allowed -- too confusing!
+ ;; -- so we have to explicitly suppress the DEFKNOWNish
+ ;; stuff here in order to allow this old hack to work in the
+ ;; new world. -- WHN 2001-08-82
+ )
;; the SB!C::DEBUG-FUN object corresponding to this object, or NIL for none
#+nil ; FIXME: doesn't work (gotcha, lowly maintenoid!) See notes on bug 137.
(debug-fun :ref-known (flushable)
;; the SB!C::DEBUG-FUN object corresponding to this object, or NIL for none
#+nil ; FIXME: doesn't work (gotcha, lowly maintenoid!) See notes on bug 137.
(debug-fun :ref-known (flushable)
(return-point :c-type "unsigned char" :rest-p t))
(define-primitive-object (closure :lowtag fun-pointer-lowtag
(return-point :c-type "unsigned char" :rest-p t))
(define-primitive-object (closure :lowtag fun-pointer-lowtag
- :lowtag fun-pointer-lowtag
- :widetag funcallable-instance-header-widetag
- :alloc-trans %make-funcallable-instance)
+ :lowtag fun-pointer-lowtag
+ :widetag funcallable-instance-header-widetag
+ :alloc-trans %make-funcallable-instance)
;; translation without trying to fix it. -- WHN 2001-08-02
)
(lexenv :ref-known (flushable) :ref-trans %funcallable-instance-lexenv
;; translation without trying to fix it. -- WHN 2001-08-02
)
(lexenv :ref-known (flushable) :ref-trans %funcallable-instance-lexenv
- :ref-known (flushable) :ref-trans %funcallable-instance-layout
- :set-known (unsafe) :set-trans (setf %funcallable-instance-layout))
+ :ref-known (flushable) :ref-trans %funcallable-instance-layout
+ :set-known (unsafe) :set-trans (setf %funcallable-instance-layout))
- :lowtag other-pointer-lowtag
- :widetag weak-pointer-widetag
- :alloc-trans make-weak-pointer)
+ :lowtag other-pointer-lowtag
+ :widetag weak-pointer-widetag
+ :alloc-trans make-weak-pointer)
;; ( NIL . NIL ), living in the first two slots of NIL-the-symbol
;; (conses have no header). Careful selection of lowtags ensures
;; that the same pointer can be used for both purposes:
;; ( NIL . NIL ), living in the first two slots of NIL-the-symbol
;; (conses have no header). Careful selection of lowtags ensures
;; that the same pointer can be used for both purposes:
#!+sb-thread (tls-index :ref-known (flushable) :ref-trans symbol-tls-index))
(define-primitive-object (complex-single-float
#!+sb-thread (tls-index :ref-known (flushable) :ref-trans symbol-tls-index))
(define-primitive-object (complex-single-float
(real :c-type "double" :length #!-x86-64 2 #!+x86-64 1)
(imag :c-type "double" :length #!-x86-64 2 #!+x86-64 1))
(real :c-type "double" :length #!-x86-64 2 #!+x86-64 1)
(imag :c-type "double" :length #!-x86-64 2 #!+x86-64 1))
;;; in c-land. However, we need sight of so many parts of it from Lisp that
;;; it makes sense to define it here anyway, so that the GENESIS machinery
;;; can take care of maintaining Lisp and C versions.
;;; in c-land. However, we need sight of so many parts of it from Lisp that
;;; it makes sense to define it here anyway, so that the GENESIS machinery
;;; can take care of maintaining Lisp and C versions.
- ;; unbound_marker is borrowed very briefly at thread startup to
- ;; pass the address of initial-function into new_thread_trampoline
- (unbound-marker :init :unbound) ; tls[0] = UNBOUND_MARKER_WIDETAG
- (pid :c-type "pid_t")
+ ;; unbound_marker is borrowed very briefly at thread startup to
+ ;; pass the address of initial-function into new_thread_trampoline
+ (unbound-marker :init :unbound) ; tls[0] = UNBOUND_MARKER_WIDETAG
+ (os-thread :c-type "os_thread_t")
(binding-stack-start :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
(binding-stack-pointer :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
(control-stack-start :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
(binding-stack-start :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
(binding-stack-pointer :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
(control-stack-start :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
(alien-stack-start :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
(alien-stack-pointer :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
#!+gencgc (alloc-region :c-type "struct alloc_region" :length 5)
(alien-stack-start :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
(alien-stack-pointer :c-type "lispobj *" :length #!+alpha 2 #!-alpha 1)
#!+gencgc (alloc-region :c-type "struct alloc_region" :length 5)
- (state) ; running, stopping, stopped, dead
+ ;; starting, running, suspended, dead
+ (state)