summaryrefslogtreecommitdiff
path: root/libguile/frames.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2015-11-21 10:32:33 +0100
committerAndy Wingo <wingo@pobox.com>2015-12-01 15:42:19 +0100
commit8bf77f7192dd319cf5391639310abb35b9e627d7 (patch)
tree7cc17b7847a1de7ec736268eafe2041d96dcd3f8 /libguile/frames.h
parentf34688ad25c8e4cb1ebc97734f255d36518d763f (diff)
downloadguile-8bf77f7192dd319cf5391639310abb35b9e627d7.tar.gz
Add support for unboxed s64 values
* libguile/frames.c (enum stack_item_representation): (scm_to_stack_item_representation): (scm_frame_local_ref, scm_frame_local_set_x): Support for S64 representations. * libguile/frames.h (union scm_vm_stack_element): Add signed 64-bit integer field. * libguile/vm-engine.c (scm->s64, s64->scm, load-s64): New instructions. * module/language/cps/compile-bytecode.scm (compile-function): * module/language/cps/cse.scm (compute-equivalent-subexpressions): * module/language/cps/effects-analysis.scm: * module/language/cps/slot-allocation.scm (compute-var-representations) (compute-needs-slot, allocate-slots): * module/language/cps/utils.scm (compute-constant-values): * module/language/cps/specialize-primcalls.scm (specialize-primcalls): Add support for new primcalls. * module/language/cps/types.scm (&s64): New type. (&s64-min, &s64-max, &u64-max): New convenience definitions. (&range-min, &range-max): Use &s64-min and &u64-max names. (scm->s64, load-s64, s64->scm): Add support for new primcalls. * module/system/vm/assembler.scm (emit-scm->s64, emit-s64->scm) (emit-load-s64): New exports. * module/system/vm/assembler.scm (write-arities): Support for s64 slots. * module/system/vm/debug.scm (arity-definitions): Support for s64 slots.
Diffstat (limited to 'libguile/frames.h')
-rw-r--r--libguile/frames.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/frames.h b/libguile/frames.h
index 2ece0c893..5aa5499ba 100644
--- a/libguile/frames.h
+++ b/libguile/frames.h
@@ -93,6 +93,7 @@ union scm_vm_stack_element
SCM as_scm;
double as_f64;
scm_t_uint64 as_u64;
+ scm_t_int64 as_s64;
/* For GC purposes. */
void *as_ptr;