rename tail-call to goto/args, add some more tail instructions
authorAndy Wingo <wingo@pobox.com>
Sat, 13 Sep 2008 17:19:10 +0000 (19:19 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 13 Sep 2008 17:24:03 +0000 (19:24 +0200)
commitf03c31dbaddba733757e3d9161c8d9c8e8f363a7
tree4f1530269500ca4ac25c500950c1ff3bbf2eb6c1
parentda320011a31f4b58570d8cb7e67cde39133572eb
rename tail-call to goto/args, add some more tail instructions

* libguile/vm-i-system.c (call): Rename continuation invocation from
  `vm_call_cc' to `vm_call_continuation', because that's what it really
  does. Add a note that it doesn't handle multiple values at the moment.
  (goto/arg): Renamed from tail-call, in deference to the progenitors, on
  Dale Smith's suggestion.
  (goto/apply): New instruction, for `apply' in a tail context. Not yet
  used, or vetted for that matter.
  (call/cc): No need to pop the program, I don't think; although this
  isn't tested either.
  (goto/cc): New instruction, for call/cc in a tail context.

* module/language/scheme/translate.scm (*forbidden-primitives*): Rename
  from %forbidden-primitives.

* module/system/il/compile.scm (codegen): Adapt to goto/args instead of
  tail-call.

* module/system/il/inline.scm: Start inlining some macros used in
  r4rs.scm -- not yet fully tested.

* ice-9/boot-9.scm: Allow load of a compiled r4rs file.
ice-9/boot-9.scm
libguile/vm-i-system.c
module/language/scheme/translate.scm
module/system/il/compile.scm
module/system/il/glil.scm
module/system/il/inline.scm