Skip to content

Commit

Permalink
make a simple type predicate, and not an instance - else lowtag 3 is …
Browse files Browse the repository at this point in the history
…checked via deftransform
  • Loading branch information
phmarek committed Sep 25, 2024
1 parent 004b10b commit 7d02cfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/code/primordial-type.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
(frob instance *instance-type*)
(frob funcallable-instance *funcallable-instance-type*)
;; New after sbcl-2.4.7: User-defined integers, to be used in DEFMETHOD etc.
(frob udef-inttype *instance-type*)
#+(or) (frob udef-inttype *instance-type*)
;; new in sbcl-1.0.3.3: necessary to act as a join point for the
;; extended sequence hierarchy. (Might be removed later if we use
;; a dedicated FUNDAMENTAL-SEQUENCE class for this.)
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/x86-64/type-vops.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@
(:generator 1 (inst cmp :byte value ,widetag)))))
(define single-float-p single-float-widetag)
(define characterp character-widetag)
(define udef-inttype-p udef-inttype-lowtag)
(define unbound-marker-p unbound-marker-widetag))

;;; FUNCTIONP, LISTP, %INSTANCEP, %OTHER-POINTER-P produce a flag result
Expand All @@ -546,7 +547,6 @@
(define functionp fun-pointer-lowtag)
(define listp list-pointer-lowtag)
(define %instancep instance-pointer-lowtag)
(define udef-inttype-p udef-inttype-lowtag)
(define %other-pointer-p other-pointer-lowtag))

;;; Function subtypes produce a flag result
Expand Down

0 comments on commit 7d02cfb

Please sign in to comment.