;;;; target-only stuff from CMU CL's src/compiler/x86/insts.lisp
+;;;;
+;;;; i.e. stuff which was in CMU CL's insts.lisp file, but which in
+;;;; the SBCL build process can't be compiled into code for the
+;;;; cross-compilation host
;;;; This software is part of the SBCL system. See the README file for
;;;; more information.
(in-package "SB!VM")
-(file-comment
- "$Header$")
-
(defun print-mem-access (value stream print-size-p dstate)
(declare (type list value)
(type stream stream)
(unless (or firstp (minusp offset))
(write-char #\+ stream))
(if firstp
- (sb!disassem:princ16 offset stream)
- (princ offset stream))))))
+ (progn
+ (sb!disassem:princ16 offset stream)
+ (or (minusp offset)
+ (nth-value 1
+ (sb!disassem::note-code-constant-absolute offset dstate))
+ (sb!disassem:maybe-note-assembler-routine offset
+ nil
+ dstate)))
+ (princ offset stream))))))
(write-char #\] stream))