Use allocate-struct in define-record-type implementations
authorAndy Wingo <wingo@pobox.com>
Sun, 21 Jul 2013 15:06:41 +0000 (17:06 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 21 Jul 2013 15:12:22 +0000 (17:12 +0200)
commit746065c92e423290e34884d057bbabf14134f664
tree7b743f252e0c89b67bec1ac75164ea5bd3d7a22d
parent14d102920fea11039cdae7fe05a2dc56f7e1264a
Use allocate-struct in define-record-type implementations

* module/ice-9/boot-9.scm (iota): Move up.
  (make-record-type, define-record-type): Use allocate-struct and
  struct-set!.

* module/srfi/srfi-9.scm (%%set-fields, %define-record-type): Use
  allocate-struct and struct-set!.

Note that this makes the stack VM slower, but it will make RTL
compilation faster.
module/ice-9/boot-9.scm
module/srfi/srfi-9.scm