diff options
author | Andy Wingo <wingo@pobox.com> | 2010-02-19 11:37:42 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-02-19 12:10:11 +0100 |
commit | 26e6f99fc3543cd4aa24d2d96126ae025f61ab28 (patch) | |
tree | 9832f0172928b0463ed56eed4133c0b9d3d85b08 /libguile/vm-engine.c | |
parent | 6e84cb95b18d81ef7a8490cccdfb08d3f88116ea (diff) | |
download | guile-26e6f99fc3543cd4aa24d2d96126ae025f61ab28.tar.gz |
vm caches the dynamic state in a local var
* libguile/vm-engine.c (vm_engine): Cache the dynamic state in a local
var when we enter the VM.
* libguile/vm-i-system.c (wind-fluids, unwind-fluids): Use the cached
dynamic state instead of going through SCM_I_CURRENT_THREAD.
Diffstat (limited to 'libguile/vm-engine.c')
-rw-r--r-- | libguile/vm-engine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/vm-engine.c b/libguile/vm-engine.c index 75dd613ed..5d1e1d68d 100644 --- a/libguile/vm-engine.c +++ b/libguile/vm-engine.c @@ -47,6 +47,7 @@ VM_NAME (SCM vm, SCM program, SCM *argv, int nargs) SCM *objects = NULL; /* constant objects */ size_t object_count = 0; /* length of OBJECTS */ SCM *stack_limit = vp->stack_limit; /* stack limit address */ + SCM dynstate = SCM_I_CURRENT_THREAD->dynamic_state; /* Internal variables */ int nvalues = 0; |