diff options
author | Andy Wingo <wingo@pobox.com> | 2009-07-19 19:48:26 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2009-07-22 00:13:52 +0200 |
commit | 8d90b356560b9cf54300ff9eabf4675acb650e03 (patch) | |
tree | 2193d51f330ab4a827be3559cbf3ac3208b18b57 /libguile/frames.c | |
parent | a5cfddd560ca21205c8b0417413253d94f3e9b93 (diff) | |
download | guile-8d90b356560b9cf54300ff9eabf4675acb650e03.tar.gz |
vm support for display closures
* libguile/vm-i-system.c (box, empty-box): Boxing values and storing
them in local variables.
(local-boxed-ref, local-boxed-set): A combination of local-ref then
variable-ref/set.
(make-closure2, closure-ref, closure-boxed-ref, closure-boxed-set):
New ops. The idea is to migrate Guile over to using flat dispay
closures. See the paper "Three Implementation Models for Scheme" by
Kent Dybvig for more details; this is the "stack-based" model.
* libguile/vm-engine.c:
* libguile/vm-engine.h: Add the necessary infrastructure to keep track
of a "closure" variable, like our "externals" in semantics, but
minimal, flat, and O(1) in implementation.
Diffstat (limited to 'libguile/frames.c')
0 files changed, 0 insertions, 0 deletions