fix use of `binding' data abstraction
authorAndy Wingo <wingo@pobox.com>
Thu, 16 Oct 2008 11:49:57 +0000 (13:49 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 16 Oct 2008 11:49:57 +0000 (13:49 +0200)
commitf580ec0f56c40838a1f4cb8c8b02c4b5c70729a3
treece4412a0abf8b9d6ec2d91bfe04ac7398ada6df5
parent1f40459f5cd2389d0a44b6c46d431ed58f450f3a
fix use of `binding' data abstraction

* module/system/vm/assemble.scm (make-temp-binding, btemp:name)
  (btemp:extp, btemp:index): Don't abuse program.scm's make-binding to
  make something that actually isn't a binding.
  (codegen): Do use program.scm's make-binding to make something that
  actually is a binding.

* module/system/vm/program.scm (binding:start, binding:end): New
  accessors.
  (make-binding): Expand to have the start and end arguments in the
  constructor.
module/system/vm/assemble.scm
module/system/vm/program.scm