From: Guillermo J. Rozas Date: Thu, 8 Aug 1991 19:54:33 +0000 (+0000) Subject: Make dummy reduction be recognizable as such, rather than spuriously X-Git-Tag: 20090517-FFI~10387 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=71afbbdd5b92eed041b1ec5cb279d851a9eaca70;p=mit-scheme.git Make dummy reduction be recognizable as such, rather than spuriously show up. --- diff --git a/v7/src/runtime/histry.scm b/v7/src/runtime/histry.scm index 98945e48a..ec7b4184f 100644 --- a/v7/src/runtime/histry.scm +++ b/v7/src/runtime/histry.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/histry.scm,v 14.4 1991/08/06 22:12:23 arthur Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/histry.scm,v 14.5 1991/08/08 19:54:07 jinx Exp $ Copyright (c) 1988, 1989, 1990 Massachusetts Institute of Technology @@ -134,7 +134,7 @@ MIT in each case. |# ;;; SET-CURRENT-HISTORY! is run. (define (with-new-history thunk) - (with-history-disabled + ((ucode-primitive with-history-disabled) (lambda () ((ucode-primitive set-current-history!) (let ((history @@ -148,9 +148,7 @@ MIT in each case. |# ;; Otherwise, record a dummy reduction, which will appear ;; in the history. - (begin (record-evaluation-in-history! history - false - system-global-environment) + (begin (record-dummy-reduction-in-history! history) (push-history! history))))) (thunk)))) @@ -204,7 +202,7 @@ MIT in each case. |# (if (marked-reduction? current) '() output))) - (if (dummy-compiler-reduction? current) + (if (dummy-reduction? current) tail (cons (list (reduction-expression current) (reduction-environment current)) @@ -213,10 +211,16 @@ MIT in each case. |# step (loop (next-reduction current) step))))) -(define (dummy-compiler-reduction? reduction) +(define (dummy-reduction? reduction) (and (false? (reduction-expression reduction)) (eq? (ucode-return-address pop-from-compiled-code) - (reduction-environment reduction)))) + (reduction-environment reduction)))) + +(define (record-dummy-reduction-in-history! history) + (record-evaluation-in-history! + history + false + (ucode-return-address pop-from-compiled-code))) (define (history-superproblem history) (if (null? (cdr history)) diff --git a/v7/src/runtime/version.scm b/v7/src/runtime/version.scm index 5b9bbd1c9..b146cf0b5 100644 --- a/v7/src/runtime/version.scm +++ b/v7/src/runtime/version.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.128 1991/08/06 22:14:08 arthur Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.129 1991/08/08 19:54:33 jinx Exp $ Copyright (c) 1988-91 Massachusetts Institute of Technology @@ -45,7 +45,7 @@ MIT in each case. |# '())) (add-system! microcode-system) (add-event-receiver! event:after-restore snarf-microcode-version!) - (add-identification! "Runtime" 14 128)) + (add-identification! "Runtime" 14 129)) (define microcode-system)