Changeset 4999


Ignore:
Timestamp:
Aug 22, 2006, 12:53:44 AM (18 years ago)
Author:
Gary Byers
Message:

Dump concatenated functions from xfunctions when cross-compiling to x86 from x86.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/nfcomp.lisp

    r4770 r4999  
    13921392           (typep f 'function))
    13931393    (break "Dumping a native function constant ~s during cross-compilation." f))
    1394   (let* ((code-size (%function-code-words f))
    1395          (function-vector (%function-to-function-vector f))
    1396          (function-size (uvsize function-vector)))
    1397     (fasl-out-opcode $fasl-clfun f)
    1398     (fasl-out-count function-size)
    1399     (fasl-out-count code-size)
    1400     (fasl-out-ivect function-vector 0 (ash code-size 3))
    1401     (do* ((k code-size (1+ k)))
    1402          ((= k function-size))
    1403       (declare (fixnum k))
    1404       (fasl-dump-form (uvref function-vector k)))))
     1394  (if (and (= (typecode f) target::subtag-xfunction)
     1395           (= (typecode (uvref f 0)) target::subtag-u8-vector))
     1396    (fasl-xdump-clfun f)
     1397    (let* ((code-size (%function-code-words f))
     1398           (function-vector (%function-to-function-vector f))
     1399           (function-size (uvsize function-vector)))
     1400      (fasl-out-opcode $fasl-clfun f)
     1401      (fasl-out-count function-size)
     1402      (fasl-out-count code-size)
     1403      (fasl-out-ivect function-vector 0 (ash code-size 3))
     1404      (do* ((k code-size (1+ k)))
     1405           ((= k function-size))
     1406        (declare (fixnum k))
     1407        (fasl-dump-form (uvref function-vector k))))))
    14051408       
    14061409
     
    14081411
    14091412;;; Write a "concatenated function"; for now, assume that the target
    1410 ;;; is x8664 and the host is a PPC.
    1411 #-x86-target
     1413;;; is x8664.
    14121414(defun fasl-xdump-clfun (f)
    14131415  (let* ((code (uvref f 0))
Note: See TracChangeset for help on using the changeset viewer.