1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-28 16:00:22 +02:00
guile/module
Andy Wingo 2fda024221 move module and meta inside programs' object tables
* libguile/programs.h (struct scm_program): Remove the module and meta
  fields.

* libguile/programs.c (scm_c_make_program): Add a new argument, `objs'.
  If it's a vector, we'll look for the module and the metadata in there,
  instead of having them in the scm_program structure.
  (scm_c_make_closure, program_mark, scm_program_meta)
  (scm_c_program_source, scm_program_module): Adapt to the new program
  representation.

* libguile/objcodes.c (scm_objcode_to_program): Pass #f as the object
  table when making the program.

* libguile/vm-engine.h (CACHE_PROGRAM):
* libguile/vm-engine.c (vm_run): Rework to use the simple vector API for
  getting the current object table. Call the helper,
  vm_make_boot_program, to make the boot program.

* libguile/vm-i-loader.c (load-program): Set the current module and the
  meta in the object vector, which we pass to scm_c_make_program.

* libguile/vm-i-system.c (toplevel-ref, toplevel-set): Adapt to the new
  program representation.

* module/language/glil/compile-objcode.scm (codegen): Clarify.
2009-01-17 16:42:53 +01:00
..
ice-9 Merge commit 'origin/master' into vm 2009-01-12 21:36:39 +01:00
language move module and meta inside programs' object tables 2009-01-17 16:42:53 +01:00
oop rename translate.scm to compile-ghil.scm, and more work on compiler.texi 2009-01-09 17:49:09 +01:00
srfi fix mismerge on srfi-19.scm 2009-01-12 21:45:37 +01:00
system finish compiler.texi, woo 2009-01-11 14:23:48 +01:00
Makefile.am move scm srfi files to module/srfi, and compile them. 2008-11-01 13:49:23 +01:00