allow compilation of #@2(1 2 3)
authorAndy Wingo <wingo@pobox.com>
Mon, 11 Jan 2010 20:47:10 +0000 (21:47 +0100)
committerAndy Wingo <wingo@pobox.com>
Mon, 11 Jan 2010 20:47:10 +0000 (21:47 +0100)
commit73788ca8bedcb4dd9578a1a992223e51a7d99a0d
treeb83a8c238562869ac0f1e203362812a3406e800d
parent5a9c6dcbb3bdda159cc45edb9d8b34e7b5043b9e
allow compilation of #@2(1 2 3)

* libguile/arrays.h:
* libguile/arrays.c (scm_from_contiguous_array): New public function,
  like scm_from_contiguous_typed_array but for arrays of generic Scheme
  values.

* libguile/vm-i-scheme.c (make-struct): Sync regs before making the
  struct, so if we get a GC the regs are on the heap.
  (make-array): New instruction, makes an generic (untyped) Scheme
  array.

* module/language/glil/compile-assembly.scm (dump-object): Correctly
  compile arrays.
libguile/arrays.c
libguile/arrays.h
libguile/vm-i-scheme.c
module/language/glil/compile-assembly.scm