[dylan-lang/opendylan] bb4723: [dfmc] Rename binding-name on <&c-function> and <&...

GitHub <[email protected]>
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <5535b3849f143_78bc3f9195ef52c038889@hookshot-fe4-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-lang/opendylan
  Commit: bb47230c075ecce8ee2b5f33919e8d9ab7e90c38
      https://github.com/dylan-lang/opendylan/commit/bb47230c075ecce8ee2b5f33919e8d9ab7e90c38
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-04-19 (Sun, 19 Apr 2015)

  Changed paths:
    M sources/dfmc/back-end/emit-object.dylan
    M sources/dfmc/back-end/heaps.dylan
    M sources/dfmc/c-back-end/c-emit-c-computation.dylan
    M sources/dfmc/c-back-end/c-emit-c-object.dylan
    M sources/dfmc/c-linker/c-link-c-object.dylan
    M sources/dfmc/conversion/convert-c-ffi.dylan
    M sources/dfmc/debug-back-end/c-debug.dylan
    M sources/dfmc/debug-back-end/print-object.dylan
    M sources/dfmc/harp-cg-linker/harp-link-object.dylan
    M sources/dfmc/harp-cg-linker/harp-linker.dylan
    M sources/dfmc/harp-cg/harp-emit.dylan
    M sources/dfmc/harp-cg/harp-main.dylan
    M sources/dfmc/llvm-back-end/llvm-emit-computation.dylan
    M sources/dfmc/llvm-linker/llvm-link-object.dylan
    M sources/dfmc/modeling/c-function-models.dylan
    M sources/dfmc/modeling/modeling-library.dylan

  Log Message:
  -----------
  [dfmc] Rename binding-name on <&c-function> and <&c-callable-function>.

This commit renames binding-name to c-function-name. This is a
new generic function and can be sealed to enable better error
reporting.

* sources/dfmc/modeling/c-function-models.dylan
  (generic c-function-name): New.
  (class <&c-function>): Rename binding-name slot to c-function-name
    and provide a type restriction on the slot.
  (class <&c-callable-function>: Same as for class <&c-function>.

* sources/dfmc/modeling/modeling-library.dylan:
  (module dfmc-modeling): Export c-function-name.

* sources/dfmc/back-end/emit-object.dylan
  (emit-name-internal on <&c-function>,
   emit-name-internal on <&c-callable-function>,
   emit-name-internal on <&objc-msgsend>): Change from binding-name
    to c-function-name.

* sources/dfmc/back-end/heaps.dylan
  (maybe-claim-heap-element on <&c-function>): Same.

* sources/dfmc/c-back-end/c-emit-c-computation.dylan
  (emit-primitive-call on <&c-function>,
   emit-primitive-call on <&objc-msgsend>): Same.

* sources/dfmc/c-back-end/c-emit-c-object.dylan
  (external-lambda?,
   emit-lambda-interface-using-function): Same.

* sources/dfmc/c-linker/c-link-c-object.dylan
  (emit-parameter-types on <&c-function>,
   emit-forward on <&c-function>,
   emit-forward on <&objc-msgsend>): Same.

* sources/dfmc/conversion/convert-c-ffi.dylan
  (convert-%c-call-function,
   convert-%c-call-function-indirect,
   convert-%c-callable-function,
   convert-%objc-msgsend): Same.

* sources/dfmc/debug-back-end/c-debug.dylan
  (print-object on <&c-function): Same. Also, remove comment that
    is no longer accurate now that we need a specialized function
    to get the right name.

* sources/debug-back-end/print-object.dylan
  (primitive-name on <&c-function>): New specialization replacing
    the previous specialization on <&objc-msgsend>, but now using
    c-function-name.

* sources/dfmc/harp-cg-linker/harp-link-object.dylan
  (emit-extern/import on <&c-function>): Change from binding-name
    to c-function-name.

* sources/dfmc/harp-cg-linker/harp-linker.dylan
  (locally-defined-c-function?): Same.

* sources/dfmc/harp-cg/harp-emit.dylan
  (emit-name-internal on <&c-callable-function>,
   emit-name-internal on <&c-function>): Same.

* sources/dfmc/harp-cg/harp-main.dylan
  (emit-lambda): Same.

* sources/dfmc/llvm-back-end/llvm-emit-computation.dylan
  (emit-primitive-call on <&c-function>): Same.

* sources/dfmc/llvm-linker/llvm-link-object.dylan
  (emit-extern on <&c-function>): Same. Also fix a bug where the
   binding-name was read from an incorrect object.


  Commit: f6f94bfcca98299b70d83ce050ac9f14b960a792
      https://github.com/dylan-lang/opendylan/commit/f6f94bfcca98299b70d83ce050ac9f14b960a792
  Author: Peter S. Housel <[email protected]>
  Date:   2015-04-20 (Mon, 20 Apr 2015)

  Changed paths:
    M sources/dfmc/back-end/emit-object.dylan
    M sources/dfmc/back-end/heaps.dylan
    M sources/dfmc/c-back-end/c-emit-c-computation.dylan
    M sources/dfmc/c-back-end/c-emit-c-object.dylan
    M sources/dfmc/c-linker/c-link-c-object.dylan
    M sources/dfmc/conversion/convert-c-ffi.dylan
    M sources/dfmc/debug-back-end/c-debug.dylan
    M sources/dfmc/debug-back-end/print-object.dylan
    M sources/dfmc/harp-cg-linker/harp-link-object.dylan
    M sources/dfmc/harp-cg-linker/harp-linker.dylan
    M sources/dfmc/harp-cg/harp-emit.dylan
    M sources/dfmc/harp-cg/harp-main.dylan
    M sources/dfmc/llvm-back-end/llvm-emit-computation.dylan
    M sources/dfmc/llvm-linker/llvm-link-object.dylan
    M sources/dfmc/modeling/c-function-models.dylan
    M sources/dfmc/modeling/modeling-library.dylan

  Log Message:
  -----------
  Merge pull request #889 from waywardmonkeys/rename-c-function-binding-name

[dfmc] Rename binding-name on <&c-function> and <&c-callable-function>.


Compare: https://github.com/dylan-lang/opendylan/compare/b74a0e6c4133...f6f94bfcca98

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.