X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Ftarget-dump.lisp;h=f18255a2dc534e35d8295d6dd6cd866dd9edd6bf;hb=416152f084604094445a758ff399871132dff2bd;hp=0c9d4d35c1ea94dd8e54f3d003857ebe0b26ab0f;hpb=1513b29bfbe948e7b431b5f67f1ff10769c192cf;p=sbcl.git diff --git a/src/compiler/target-dump.lisp b/src/compiler/target-dump.lisp index 0c9d4d3..f18255a 100644 --- a/src/compiler/target-dump.lisp +++ b/src/compiler/target-dump.lisp @@ -101,35 +101,11 @@ (dump-unsigned-32 mid-bits file) (dump-unsigned-32 high-bits file) (dump-integer-as-n-bytes exp-bits 4 file))) - -(defun dump-complex (x file) - (typecase x - ((complex single-float) - (dump-fop 'fop-complex-single-float file) - (dump-integer-as-n-bytes (single-float-bits (realpart x)) 4 file) - (dump-integer-as-n-bytes (single-float-bits (imagpart x)) 4 file)) - ((complex double-float) - (dump-fop 'fop-complex-double-float file) - (let ((re (realpart x))) - (declare (double-float re)) - (dump-unsigned-32 (double-float-low-bits re) file) - (dump-integer-as-n-bytes (double-float-high-bits re) 4 file)) - (let ((im (imagpart x))) - (declare (double-float im)) - (dump-unsigned-32 (double-float-low-bits im) file) - (dump-integer-as-n-bytes (double-float-high-bits im) 4 file))) - #!+long-float - ((complex long-float) - (dump-fop 'fop-complex-long-float file) - (dump-long-float (realpart x) file) - (dump-long-float (imagpart x) file)) - (t - (sub-dump-object (realpart x) file) - (sub-dump-object (imagpart x) file) - (dump-fop 'fop-complex file)))) ;;;; dumping things which don't exist in portable ANSI Common Lisp +;;; FIXME: byte compiler to go away completely +#| ;;; Dump a BYTE-FUNCTION object. We dump the layout and ;;; funcallable-instance info, but rely on the loader setting up the ;;; correct funcallable-instance-function. @@ -145,3 +121,4 @@ (dump-fop 'fop-make-byte-compiled-function file) (dump-byte nslots file)) (values)) +|# \ No newline at end of file