add metalen field to bytecode serialization
authorAndy Wingo <wingo@pobox.com>
Sun, 1 Feb 2009 08:19:24 +0000 (09:19 +0100)
committerAndy Wingo <wingo@pobox.com>
Sun, 1 Feb 2009 08:19:24 +0000 (09:19 +0100)
commit9aeaabdc4571b5a2319c88e02904bd8996d5ac01
treeebc106e1e56e3a34fa6049b9f2bfbb69661d782e
parentd2d7acd5c11c6573dad62b0a77ace7bb6603e425
add metalen field to bytecode serialization

* libguile/objcodes.h (struct scm_objcode): Add a new field, metalen, in
  preparation for embedding metadata within a program.
  (SCM_OBJCODE_META_LEN, SCM_OBJCODE_TOTAL_LEN): New defines.

* libguile/vm.c (really_make_boot_program):
* module/language/assembly.scm (*program-header-len*, byte-length):
* module/language/assembly/compile-bytecode.scm (write-bytecode):
* module/language/assembly/decompile-bytecode.scm (decode-load-program):
* module/language/assembly/disassemble.scm (disassemble-load-program):
* module/language/glil/compile-assembly.scm (glil->assembly):
* test-suite/tests/asm-to-bytecode.test ("compiler"): Update for metalen
  addition.
libguile/objcodes.h
libguile/vm.c
module/language/assembly.scm
module/language/assembly/compile-bytecode.scm
module/language/assembly/decompile-bytecode.scm
module/language/assembly/disassemble.scm
module/language/glil/compile-assembly.scm
test-suite/tests/asm-to-bytecode.test