X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fdebug-info.lisp;h=5ef9dee22188f098020dee7a7abbd405a4eef350;hb=860543cc7ba0266e41e1d41ac9b6a208f3795f1a;hp=829694cb628bb913bd26a3130095f199d4db14aa;hpb=8731c1a7c1a585d190151fa881050fb5e14c0616;p=sbcl.git diff --git a/src/code/debug-info.lisp b/src/code/debug-info.lisp index 829694c..5ef9dee 100644 --- a/src/code/debug-info.lisp +++ b/src/code/debug-info.lisp @@ -11,22 +11,6 @@ (in-package "SB!C") -;;;; SC-OFFSETs -;;;; -;;;; We represent the place where some value is stored with a SC-OFFSET, -;;;; which is the SC number and offset encoded as an integer. - -(defconstant-eqx sc-offset-scn-byte (byte 5 0) #'equalp) -(defconstant-eqx sc-offset-offset-byte (byte 22 5) #'equalp) -(def!type sc-offset () '(unsigned-byte 27)) - -(defmacro make-sc-offset (scn offset) - `(dpb ,scn sc-offset-scn-byte - (dpb ,offset sc-offset-offset-byte 0))) - -(defmacro sc-offset-scn (sco) `(ldb sc-offset-scn-byte ,sco)) -(defmacro sc-offset-offset (sco) `(ldb sc-offset-offset-byte ,sco)) - ;;;; flags for compiled debug variables ;;; FIXME: old CMU CL representation follows: @@ -46,7 +30,7 @@ ;;; ...package name bytes...] ;;; [If has ID, ID as var-length integer] ;;; SC-Offset of primary location (as var-length integer) -;;; [If has save SC, SC-Offset of save location (as var-length integer)] +;;; [If has save SC, SC-OFFSET of save location (as var-length integer)] ;;; FIXME: The first two are no longer used in SBCL. ;;;(defconstant compiled-debug-var-uninterned #b00000001) @@ -184,10 +168,10 @@ ;; The function returns using the fixed-values convention, but ;; in order to save space, we elected not to store a vector. (returns :fixed :type (or (simple-array * (*)) (member :standard :fixed))) - ;; SC-Offsets describing where the return PC and return FP are kept. + ;; SC-OFFSETs describing where the return PC and return FP are kept. (return-pc (missing-arg) :type sc-offset) (old-fp (missing-arg) :type sc-offset) - ;; SC-Offset for the number stack FP in this function, or NIL if no + ;; SC-OFFSET for the number stack FP in this function, or NIL if no ;; NFP allocated. (nfp nil :type (or sc-offset null)) ;; The earliest PC in this function at which the environment is properly