Support serialization of uniform vector literals
authorAndy Wingo <wingo@pobox.com>
Wed, 30 Oct 2013 20:11:03 +0000 (21:11 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 31 Oct 2013 11:55:23 +0000 (12:55 +0100)
commit7bfbc7b1c50df58a26e3ffb88f809858a03b0e11
tree137cb6a32e78e491d861a5839f2bd9be095e6c8a
parent6a37b7faaf150e9fb7945ef79969cb7671d17367
Support serialization of uniform vector literals

* libguile/uniform.h:
* libguile/uniform.c (scm_uniform_vector_element_type_code): New
  interface, returns a type code as an integer.

* module/system/vm/assembler.scm (<uniform-vector-backing-store>)
  (simple-vector?, uniform-array?, statically-allocatable?)
  (intern-constant, link-data, link-constants): Support uniform arrays,
  and punt on vectors aren't contiguous from 0.  Support for general
  arrays will come later.

* test-suite/tests/rtl.test ("load-constant"): Add tests.
libguile/uniform.c
libguile/uniform.h
module/system/vm/assembler.scm
test-suite/tests/rtl.test