mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 17:20:29 +02:00
rename goto/args and friends to tail-call, tail-apply, etc
* libguile/vm-i-system.c (tail-call, tail-call/nargs, tail-apply) (tail-call/cc): Rename these back to tail-* from goto/*. We should reserve the rename-then-goto name for when you actually do a rename and goto, not when you shuffle the stack. * doc/ref/vm.texi: * module/language/glil/decompile-assembly.scm: * module/language/tree-il/compile-glil.scm: * test-suite/tests/tree-il.test: Adapt all callers and documentation.
This commit is contained in:
parent
87a6a23669
commit
a5bbb22e83
5 changed files with 34 additions and 36 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; Guile VM code converters
|
||||
|
||||
;; Copyright (C) 2001, 2009 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2001, 2009, 2010 Free Software Foundation, Inc.
|
||||
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -183,9 +183,9 @@
|
|||
(cons (make-glil-call 'mul 2)
|
||||
(emit-constants (list-head stack 2) out))
|
||||
(+ pos 1)))
|
||||
((goto/args ,n)
|
||||
((tail-call ,n)
|
||||
(lp (cdr in) (list-tail stack (1+ n))
|
||||
(cons (make-glil-call 'goto/args n)
|
||||
(cons (make-glil-call 'tail-call n)
|
||||
(emit-constants (list-head stack (1+ n)) out))
|
||||
(+ pos 2)))
|
||||
(else (error "unsupported decompilation" (car in)))))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue