X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ftarget-defstruct.lisp;h=8978cc52e73832330d64cf863deef0ba5c2442b3;hb=230707c1899c1c008f7ce2ad97e2fd04849f7443;hp=2ccc8187b42b07ea0f8c9da376dc4d4432398f0b;hpb=f12f2c5a8ae794dc414dd6a42e0b25740d576aa1;p=sbcl.git diff --git a/src/code/target-defstruct.lisp b/src/code/target-defstruct.lisp index 2ccc818..8978cc5 100644 --- a/src/code/target-defstruct.lisp +++ b/src/code/target-defstruct.lisp @@ -71,8 +71,11 @@ (defun %raw-instance-set/complex-double (instance index new-value) (declare (type index index) (type (complex double-float) new-value)) - (%raw-instance-set/complex-double instance index new-value))) + (%raw-instance-set/complex-double instance index new-value)) +) ; #!-HPPA +#!+hppa +(progn (defun %raw-ref-single (vec index) (declare (type index index)) (%raw-ref-single vec index)) @@ -124,6 +127,7 @@ (defun %raw-set-complex-long (vec index val) (declare (type index index)) (%raw-set-complex-long vec index val)) +) ; #!+HPPA (defun %instance-layout (instance) (%instance-layout instance)) @@ -550,9 +554,7 @@ (when (layout-invalid layout) (error "An obsolete structure accessor function was called.")) (/noshow0 "back from testing LAYOUT-INVALID LAYOUT") - ;; FIXME: CMU CL used (%INSTANCEP OBJ) here. Check that - ;; (TYPEP OBJ 'INSTANCE) is optimized to equally efficient code. - (and (typep obj 'instance) + (and (%instancep obj) (let ((obj-layout (%instance-layout obj))) (cond ((eq obj-layout layout) ;; (In this case OBJ-LAYOUT can't be invalid, because