Changeset 5777


Ignore:
Timestamp:
Jan 23, 2007, 6:01:31 AM (18 years ago)
Author:
Gary Byers
Message:

Define ffi stuff in terms of common things in compiler/X86/X8664/x8664-backend.

Location:
trunk/ccl/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/ffi-darwinx8664.lisp

    r5737 r5777  
    1515;;;   http://opensource.franz.com/preamble.html
    1616
     17(in-package "CCL")
     18
     19;;; It looks like x86-64 Linux, FreeBSD, and Darwin all share the same
     20;;; ABI.
     21
     22(defun x86-darwin64::record-type-returns-structure-as-first-arg (rtype)
     23  (x8664::record-type-returns-structure-as-first-arg rtype))
     24
     25
     26
     27(defun x86-darwin64::expand-ff-call (callform args &key (arg-coerce #'null-coerce-foreign-arg) (result-coerce #'null-coerce-foreign-result))
     28  (x8664::expand-ff-call callform args :arg-coerce arg-coerce :result-coerce result-coerce))
  • trunk/ccl/lib/ffi-freebsdx8664.lisp

    r5737 r5777  
    1515;;;   http://opensource.franz.com/preamble.html
    1616
     17(in-package "CCL")
     18
     19;;; It looks like x86-64 Linux, FreeBSD, and Darwin all share the same
     20;;; ABI.
     21
     22(defun x86-freebsd64::record-type-returns-structure-as-first-arg (rtype)
     23  (x8664::record-type-returns-structure-as-first-arg rtype))
     24
     25
     26
     27(defun x86-freebsd64::expand-ff-call (callform args &key (arg-coerce #'null-coerce-foreign-arg) (result-coerce #'null-coerce-foreign-result))
     28  (x8664::expand-ff-call callform args :arg-coerce arg-coerce :result-coerce result-coerce))
  • trunk/ccl/lib/ffi-linuxx8664.lisp

    r5737 r5777  
    1515;;;   http://opensource.franz.com/preamble.html
    1616
     17
     18(in-package "CCL")
     19
     20;;; It looks like x86-64 Linux, FreeBSD, and Darwin all share the same
     21;;; ABI.
     22
     23(defun x86-linux64::record-type-returns-structure-as-first-arg (rtype)
     24  (x8664::record-type-returns-structure-as-first-arg rtype))
     25
     26
     27
     28(defun x86-linux64::expand-ff-call (callform args &key (arg-coerce #'null-coerce-foreign-arg) (result-coerce #'null-coerce-foreign-result))
     29  (x8664::expand-ff-call callform args :arg-coerce arg-coerce :result-coerce result-coerce))
     30                           
     31
Note: See TracChangeset for help on using the changeset viewer.