guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, master, updated. release_1-9-12-84-g03


From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, master, updated. release_1-9-12-84-g038cb34
Date: Sat, 25 Sep 2010 10:15:18 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=038cb3428f4c3686841e5a597164db28c2200dc7

The branch, master has been updated
       via  038cb3428f4c3686841e5a597164db28c2200dc7 (commit)
       via  85d3a8a63dbac7aa8aa5a70b0719be2277355b87 (commit)
       via  f165bf93066ffef66c2acc5d34fc918bd22496aa (commit)
       via  a12c6c3b25ad54754fb9f4defcbe2076fa54060d (commit)
      from  3932bdb3af23f2d04502c3fcb8cbe50e6d5b7e6d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 038cb3428f4c3686841e5a597164db28c2200dc7
Author: Andy Wingo <address@hidden>
Date:   Sat Sep 25 12:16:05 2010 +0200

    remove vm-version, vm options
    
    * libguile/vm.h (struct scm_vm): Remove "options" member.
    * libguile/vm.c (scm_vm_version, scm_vm_option, scm_set_vm_option_x):
      Remove.
    
    * module/system/vm/vm.scm (vm-version, vm-option, set-vm-option!):
      Remove.
      (vms:time, vms:clock): Remove these unused definitions.
      (vm-load): Remove. "Load" should be reserved for things that exist on
      disk, methinks.

commit 85d3a8a63dbac7aa8aa5a70b0719be2277355b87
Author: Andy Wingo <address@hidden>
Date:   Sat Sep 25 12:12:45 2010 +0200

    fix up options.test
    
    * test-suite/tests/options.test (test-suite): Fix up for removal of
      maxdepth debug option.

commit f165bf93066ffef66c2acc5d34fc918bd22496aa
Author: Andy Wingo <address@hidden>
Date:   Sat Sep 25 12:09:13 2010 +0200

    statprof test traps fix; re-enable accurate call counting test
    
    * test-suite/tests/statprof.test: Remove needless debug-enable /
      trap-enable calls.
      ("accurate call counting"): Fix this test. Whee :)

commit a12c6c3b25ad54754fb9f4defcbe2076fa54060d
Author: Andy Wingo <address@hidden>
Date:   Sat Sep 25 12:02:33 2010 +0200

    fix eval.test for procnames eval option
    
    * test-suite/tests/eval.test ("define set procedure-name"): Fix needless
      use of removed 'procnames eval option.

-----------------------------------------------------------------------

Summary of changes:
 libguile/vm.c                  |   32 --------------------------------
 libguile/vm.h                  |    4 ----
 module/system/vm/vm.scm        |    9 ---------
 test-suite/tests/compiler.test |    7 ++++---
 test-suite/tests/eval.test     |    7 -------
 test-suite/tests/options.test  |   15 +++++++--------
 test-suite/tests/statprof.test |   15 ++++-----------
 test-suite/vm/run-vm-tests.scm |    5 +++--
 8 files changed, 18 insertions(+), 76 deletions(-)

diff --git a/libguile/vm.c b/libguile/vm.c
index b229c27..7512d10 100644
--- a/libguile/vm.c
+++ b/libguile/vm.c
@@ -513,7 +513,6 @@ make_vm (void)
   vp->sp         = vp->stack_base - 1;
   vp->fp         = NULL;
   vp->engine      = SCM_VM_DEBUG_ENGINE;
-  vp->options     = SCM_EOL;
   vp->trace_level = 0;
   for (i = 0; i < SCM_VM_NUM_HOOKS; i++)
     vp->hooks[i] = SCM_BOOL_F;
@@ -588,15 +587,6 @@ SCM_DEFINE (scm_vm_apply, "vm-apply", 3, 0, 0,
 
 /* Scheme interface */
 
-SCM_DEFINE (scm_vm_version, "vm-version", 0, 0, 0,
-           (void),
-           "")
-#define FUNC_NAME s_scm_vm_version
-{
-  return scm_from_locale_string (PACKAGE_VERSION);
-}
-#undef FUNC_NAME
-
 /* Return T's VM.  */
 static inline SCM
 thread_vm (scm_i_thread *t)
@@ -759,28 +749,6 @@ SCM_DEFINE (scm_vm_restore_continuation_hook, 
"vm-restore-continuation-hook", 1,
 }
 #undef FUNC_NAME
 
-SCM_DEFINE (scm_vm_option, "vm-option", 2, 0, 0,
-           (SCM vm, SCM key),
-           "")
-#define FUNC_NAME s_scm_vm_option
-{
-  SCM_VALIDATE_VM (1, vm);
-  return scm_assq_ref (SCM_VM_DATA (vm)->options, key);
-}
-#undef FUNC_NAME
-
-SCM_DEFINE (scm_set_vm_option_x, "set-vm-option!", 3, 0, 0,
-           (SCM vm, SCM key, SCM val),
-           "")
-#define FUNC_NAME s_scm_set_vm_option_x
-{
-  SCM_VALIDATE_VM (1, vm);
-  SCM_VM_DATA (vm)->options
-    = scm_assq_set_x (SCM_VM_DATA (vm)->options, key, val);
-  return SCM_UNSPECIFIED;
-}
-#undef FUNC_NAME
-
 SCM_DEFINE (scm_vm_trace_level, "vm-trace-level", 1, 0, 0,
            (SCM vm),
            "")
diff --git a/libguile/vm.h b/libguile/vm.h
index 86b096d..36dc1dc 100644
--- a/libguile/vm.h
+++ b/libguile/vm.h
@@ -49,7 +49,6 @@ struct scm_vm {
   SCM *stack_limit;            /* stack limit address */
   int engine;                   /* which vm engine we're using */
   SCM hooks[SCM_VM_NUM_HOOKS]; /* hooks */
-  SCM options;                 /* options */
   int trace_level;              /* traces enabled if trace_level > 0 */
   scm_t_int64 cookie;           /* used to detect unrewindable continuations */
 };
@@ -65,7 +64,6 @@ SCM_API SCM scm_make_vm (void);
 SCM_API SCM scm_vm_apply (SCM vm, SCM program, SCM args);
 SCM_API SCM scm_c_vm_run (SCM vm, SCM program, SCM *argv, int nargs);
 
-SCM_API SCM scm_vm_version (void);
 SCM_API SCM scm_thread_vm (SCM t);
 SCM_API SCM scm_set_thread_vm_x (SCM t, SCM vm);
 SCM_API SCM scm_the_vm (void);
@@ -79,8 +77,6 @@ SCM_API SCM scm_vm_pop_continuation_hook (SCM vm);
 SCM_API SCM scm_vm_abort_continuation_hook (SCM vm);
 SCM_API SCM scm_vm_restore_continuation_hook (SCM vm);
 SCM_API SCM scm_vm_next_hook (SCM vm);
-SCM_API SCM scm_vm_option (SCM vm, SCM key);
-SCM_API SCM scm_set_vm_option_x (SCM vm, SCM key, SCM val);
 SCM_API SCM scm_vm_trace_level (SCM vm);
 SCM_API SCM scm_set_vm_trace_level_x (SCM vm, SCM level);
 
diff --git a/module/system/vm/vm.scm b/module/system/vm/vm.scm
index 66afdbb..874d5c8 100644
--- a/module/system/vm/vm.scm
+++ b/module/system/vm/vm.scm
@@ -25,9 +25,6 @@
             the-vm thread-vm set-thread-vm!
             vm:ip vm:sp vm:fp vm:last-ip
 
-            vm-load vm-option set-vm-option! vm-version
-            vms:time vms:clock
-
             vm-trace-level set-vm-trace-level!
             vm-push-continuation-hook vm-pop-continuation-hook
             vm-apply-hook
@@ -36,9 +33,3 @@
 
 (load-extension (string-append "libguile-" (effective-version))
                 "scm_init_vm")
-
-(define (vms:time stat) (vector-ref stat 0))
-(define (vms:clock stat) (vector-ref stat 1))
-
-(define (vm-load vm objcode)
-  (vm-apply vm (make-program objcode) '()))
diff --git a/test-suite/tests/compiler.test b/test-suite/tests/compiler.test
index 90538ac..f600fe2 100644
--- a/test-suite/tests/compiler.test
+++ b/test-suite/tests/compiler.test
@@ -19,8 +19,9 @@
   #:use-module (test-suite lib)
   #:use-module (test-suite guile-test)
   #:use-module (system base compile)
-  #:use-module ((system vm vm) #:select (the-vm vm-load))
-  #:use-module ((system vm program) #:select (program-sources source:addr)))
+  #:use-module ((system vm vm) #:select (the-vm vm-apply))
+  #:use-module ((system vm program) #:select (make-program
+                                              program-sources source:addr)))
 
 (define read-and-compile
   (@@ (system base compile) read-and-compile))
@@ -97,7 +98,7 @@
                      #f)
                    (install-reader!)
                    this-should-be-ignored")))
-      (and (eq? (vm-load (the-vm) (read-and-compile input))
+      (and (eq? (vm-apply (the-vm) (make-program (read-and-compile input)) '())
                 'ok)
            (eq? r (fluid-ref current-reader)))))
 
diff --git a/test-suite/tests/eval.test b/test-suite/tests/eval.test
index 83820f7..4d37f7b 100644
--- a/test-suite/tests/eval.test
+++ b/test-suite/tests/eval.test
@@ -212,9 +212,6 @@
 ;;; define with procedure-name
 ;;;
 
-(define old-procnames-flag (memq 'procnames (debug-options)))
-(debug-enable 'procnames)
-
 ;; names are only set on top-level procedures (currently), so these can't be
 ;; hidden in a let
 ;;
@@ -235,10 +232,6 @@
   (expect-fail "procedure-with-setter"
     (eq? 'foo-pws (procedure-name bar-pws))))
 
-(if old-procnames-flag
-    (debug-enable 'procnames)
-    (debug-disable 'procnames))
-
 ;;;
 ;;; promises
 ;;;
diff --git a/test-suite/tests/options.test b/test-suite/tests/options.test
index a795109..a5886e2 100644
--- a/test-suite/tests/options.test
+++ b/test-suite/tests/options.test
@@ -1,6 +1,6 @@
 ;;;; options.test --- test suite for options interface -*- scheme -*-
 ;;;;
-;;;;   Copyright (C) 2002, 2006 Free Software Foundation, Inc.
+;;;;   Copyright (C) 2002, 2006, 2010 Free Software Foundation, Inc.
 ;;;; 
 ;;;; This library is free software; you can redistribute it and/or
 ;;;; modify it under the terms of the GNU Lesser General Public
@@ -16,14 +16,13 @@
 ;;;; License along with this library; if not, write to the Free Software
 ;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 
USA
 
-(use-modules (test-suite lib))
+(define-module (test-suite options-test)
+  #:use-module (test-suite lib))
 
 (with-test-prefix "options"
 
   (pass-if "setting an option doesn't reset other options"
-          (let ()
-            (debug-enable 'backwards)
-            (debug-set! maxdepth 555)
-            (if (memq 'backwards (debug-options)) #t #f)))
-
-  )
+    (begin
+      (debug-enable 'backwards)
+      (debug-set! depth 555)
+      (->bool (memq 'backwards (debug-options))))))
diff --git a/test-suite/tests/statprof.test b/test-suite/tests/statprof.test
index 22fce32..66af55f 100644
--- a/test-suite/tests/statprof.test
+++ b/test-suite/tests/statprof.test
@@ -1,5 +1,5 @@
 ;; guile-lib                    -*- scheme -*-
-;; Copyright (C) 2004, 2009 Andy Wingo <wingo at pobox dot com>
+;; Copyright (C) 2004, 2009, 2010 Andy Wingo <wingo at pobox dot com>
 ;; Copyright (C) 2001 Rob Browning <rlb at defaultvalue dot org>
 
 ;; This library is free software; you can redistribute it and/or
@@ -31,10 +31,6 @@
   #:use-module (srfi srfi-1)
   #:use-module (statprof))
 
-;; FIXME
-(debug-enable 'debug)
-(trap-enable 'traps)
-
 (pass-if "statistical sample counts within expected range"
   (let ()
     ;; test to see that if we call 3 identical functions equally, they
@@ -86,11 +82,10 @@
     ;; is active, it shows up N times.
     (let ((num-calls 200))
 
-      (define (do-nothing n)
-        (simple-format #f "FOO ~A\n" (+ n n)))
+      (define do-nothing
+        (compile '(lambda (n)
+                    (simple-format #f "FOO ~A\n" (+ n n)))))
     
-      (throw 'unresolved) ;; need to fix VM tracing.
-
       ;; Run test.
       (statprof-reset 0 50000 #t #f)
       (statprof-start)
@@ -102,8 +97,6 @@
           #t)))
       (statprof-stop)
     
-      ;;(statprof-display)
-
       ;; Check result.
       (let ((proc-data (statprof-proc-call-data do-nothing)))
         (and proc-data
diff --git a/test-suite/vm/run-vm-tests.scm b/test-suite/vm/run-vm-tests.scm
index 39e7bf1..f699fdf 100644
--- a/test-suite/vm/run-vm-tests.scm
+++ b/test-suite/vm/run-vm-tests.scm
@@ -1,6 +1,6 @@
 ;;; run-vm-tests.scm -- Run Guile-VM's test suite.
 ;;;
-;;; Copyright 2005, 2009 Free Software Foundation, Inc.
+;;; Copyright 2005, 2009, 2010 Free Software Foundation, Inc.
 ;;;
 ;;; This program is free software; you can redistribute it and/or
 ;;; modify it under the terms of the GNU Lesser General Public License
@@ -18,6 +18,7 @@
 
 
 (use-modules (system vm vm)
+             (system vm program)
             (system base compile)
             (system base language)
              (language scheme spec)
@@ -41,7 +42,7 @@
 
 (define (run-vm-program objcode)
   "Run VM program contained into @var{objcode}."
-  (vm-load (the-vm) objcode))
+  (vm-apply (the-vm) (make-program objcode) '()))
 
 (define (compile/run-test-from-file file)
   "Run test from source file @var{file} and return a value indicating whether


hooks/post-receive
-- 
GNU Guile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]