;;; Dump a component to core. We pass in the assembler fixups, code
;;; vector and node info.
-(defun make-core-component (component segment length trace-table fixups object)
+(defun make-core-component (component segment length trace-table fixup-notes object)
(declare (type component component)
(type sb!assem:segment segment)
(type index length)
- (list trace-table fixups)
+ (list trace-table fixup-notes)
(type core-object object))
(without-gcing
(let* ((2comp (component-info component))
(ceiling trace-table-bits sb!vm:n-byte-bits)))
(box-num (- (length constants) sb!vm:code-trace-table-offset-slot))
(code-obj
- ;; FIXME: In CMU CL the X86 behavior here depended on
- ;; *ENABLE-DYNAMIC-SPACE-CODE*, but in SBCL we always use
- ;; dynamic space code, so we could make
- ;; ALLOCATE-DYNAMIC-CODE-OBJECT more parallel with
- ;; ALLOCATE-CODE-OBJECT and remove this confusing
- ;; read-macro conditionalization.
- #!+x86
- (%primitive allocate-dynamic-code-object box-num total-length)
- #!-x86
(%primitive allocate-code-object box-num total-length))
(fill-ptr (code-instructions code-obj)))
(declare (type index box-num total-length))
(copy-byte-vector-to-system-area v fill-ptr)
(setf fill-ptr (sap+ fill-ptr (length v)))))
- (do-core-fixups code-obj fixups)
+ (do-core-fixups code-obj fixup-notes)
(dolist (entry (ir2-component-entries 2comp))
(make-fun-entry entry code-obj object))