X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fgeneric%2Fvm-fndb.lisp;h=2a4857b4a30ab614dcbba2e23128d680417874cc;hb=ce3d6da896e35c9e202db443c5cfc9fedcf65ebe;hp=8221f5b26bd6057faff6be658a7b9fb2e6374dbe;hpb=f143939b1dbaf38ebd4f92c851fbc4ecddf37af1;p=sbcl.git diff --git a/src/compiler/generic/vm-fndb.lisp b/src/compiler/generic/vm-fndb.lisp index 8221f5b..2a4857b 100644 --- a/src/compiler/generic/vm-fndb.lisp +++ b/src/compiler/generic/vm-fndb.lisp @@ -22,7 +22,8 @@ complex-vector-p base-char-p %standard-char-p %instancep array-header-p - simple-array-p simple-array-unsigned-byte-2-p + simple-array-p simple-array-nil-p + simple-array-unsigned-byte-2-p simple-array-unsigned-byte-4-p simple-array-unsigned-byte-8-p simple-array-unsigned-byte-16-p simple-array-unsigned-byte-32-p simple-array-signed-byte-8-p simple-array-signed-byte-16-p @@ -55,9 +56,9 @@ (defknown vector-sap ((simple-unboxed-array (*))) system-area-pointer (flushable)) -(defknown get-lowtag (t) (unsigned-byte #.sb!vm:lowtag-bits) +(defknown lowtag-of (t) (unsigned-byte #.sb!vm:n-lowtag-bits) (flushable movable)) -(defknown get-type (t) (unsigned-byte #.sb!vm:type-bits) +(defknown widetag-of (t) (unsigned-byte #.sb!vm:n-widetag-bits) (flushable movable)) (defknown (get-header-data get-closure-length) (t) (unsigned-byte 24) @@ -228,7 +229,7 @@ (foldable flushable movable)) (defknown %fixnum-digit-with-correct-sign (bignum-element-type) - (signed-byte #.sb!vm:word-bits) + (signed-byte #.sb!vm:n-word-bits) (foldable flushable movable)) (defknown (%ashl %ashr %digit-logical-shift-right) @@ -272,11 +273,11 @@ (defknown code-header-ref (t index) t (flushable)) (defknown code-header-set (t index t) t ()) -(defknown function-subtype (function) (unsigned-byte #.sb!vm:type-bits) +(defknown fun-subtype (function) (unsigned-byte #.sb!vm:n-widetag-bits) (flushable)) -(defknown ((setf function-subtype)) - ((unsigned-byte #.sb!vm:type-bits) function) - (unsigned-byte #.sb!vm:type-bits) +(defknown ((setf fun-subtype)) + ((unsigned-byte #.sb!vm:n-widetag-bits) function) + (unsigned-byte #.sb!vm:n-widetag-bits) ()) (defknown make-fdefn (t) fdefn (flushable movable)) @@ -306,3 +307,7 @@ ;;;; mutator accessors (defknown mutator-self () system-area-pointer (flushable movable)) + +(defknown %data-vector-and-index (array index) + (values (simple-array * (*)) index) + (foldable flushable))