From: Chris Hanson Date: Wed, 28 Jul 1993 03:42:14 +0000 (+0000) Subject: New procedure COMPILED-CODE-BLOCK/FILENAME. X-Git-Tag: 20090517-FFI~8170 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=643fc2af3275f388ead4725f8cbe68adf2e2dded;p=mit-scheme.git New procedure COMPILED-CODE-BLOCK/FILENAME. --- diff --git a/v7/src/runtime/infutl.scm b/v7/src/runtime/infutl.scm index 975b82f7b..401e2bc12 100644 --- a/v7/src/runtime/infutl.scm +++ b/v7/src/runtime/infutl.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: infutl.scm,v 1.46 1993/02/27 07:29:50 gjr Exp $ +$Id: infutl.scm,v 1.47 1993/07/28 03:42:02 cph Exp $ Copyright (c) 1988-1993 Massachusetts Institute of Technology @@ -102,7 +102,7 @@ MIT in each case. |# ("bif" . ,fasload-loader) ("bci" . ,(lambda (pathname) (compressed-loader pathname "bif")))))))) - + (define (memoize-debugging-info! block dbg-info) (without-interrupts (lambda () @@ -172,9 +172,10 @@ MIT in each case. |# (compiled-code-address->offset entry))) (define (compiled-entry/filename entry) - (let loop - ((info - (compiled-code-block/debugging-info (compiled-entry/block entry)))) + (compiled-code-block/filename (compiled-entry/block entry))) + +(define (compiled-code-block/filename block) + (let loop ((info (compiled-code-block/debugging-info block))) (cond ((string? info) (values info false)) ((not (pair? info)) (values false false)) ((dbg-info? (car info)) (loop (cdr info))) @@ -243,7 +244,7 @@ MIT in each case. |# (pathname-version com-pathname))) (pathname-new-type com-pathname (pathname-type binf-pathname)) binf-pathname))))) - + (define directory-rewriting-rules '()) @@ -545,7 +546,7 @@ MIT in each case. |# (bp bp (fix:+ bp 1))) ((not (fix:< bp* end-bp*))) (vector-8b-set! buffer bp - (vector-8b-ref buffer bp*))))) + (vector-8b-ref buffer bp*))))) (vector-set! cp-table cp bp) (loop nbp ncp)))))))))) diff --git a/v7/src/runtime/runtime.pkg b/v7/src/runtime/runtime.pkg index 5a601ac6d..cbf0e6a0f 100644 --- a/v7/src/runtime/runtime.pkg +++ b/v7/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: runtime.pkg,v 14.186 1993/07/27 00:46:44 cph Exp $ +$Id: runtime.pkg,v 14.187 1993/07/28 03:42:14 cph Exp $ Copyright (c) 1988-1993 Massachusetts Institute of Technology @@ -221,6 +221,7 @@ MIT in each case. |# (files "infstr" "infutl") (parent ()) (export () + compiled-code-block/filename compiled-entry/block compiled-entry/dbg-object compiled-entry/filename diff --git a/v8/src/runtime/infutl.scm b/v8/src/runtime/infutl.scm index 975b82f7b..401e2bc12 100644 --- a/v8/src/runtime/infutl.scm +++ b/v8/src/runtime/infutl.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: infutl.scm,v 1.46 1993/02/27 07:29:50 gjr Exp $ +$Id: infutl.scm,v 1.47 1993/07/28 03:42:02 cph Exp $ Copyright (c) 1988-1993 Massachusetts Institute of Technology @@ -102,7 +102,7 @@ MIT in each case. |# ("bif" . ,fasload-loader) ("bci" . ,(lambda (pathname) (compressed-loader pathname "bif")))))))) - + (define (memoize-debugging-info! block dbg-info) (without-interrupts (lambda () @@ -172,9 +172,10 @@ MIT in each case. |# (compiled-code-address->offset entry))) (define (compiled-entry/filename entry) - (let loop - ((info - (compiled-code-block/debugging-info (compiled-entry/block entry)))) + (compiled-code-block/filename (compiled-entry/block entry))) + +(define (compiled-code-block/filename block) + (let loop ((info (compiled-code-block/debugging-info block))) (cond ((string? info) (values info false)) ((not (pair? info)) (values false false)) ((dbg-info? (car info)) (loop (cdr info))) @@ -243,7 +244,7 @@ MIT in each case. |# (pathname-version com-pathname))) (pathname-new-type com-pathname (pathname-type binf-pathname)) binf-pathname))))) - + (define directory-rewriting-rules '()) @@ -545,7 +546,7 @@ MIT in each case. |# (bp bp (fix:+ bp 1))) ((not (fix:< bp* end-bp*))) (vector-8b-set! buffer bp - (vector-8b-ref buffer bp*))))) + (vector-8b-ref buffer bp*))))) (vector-set! cp-table cp bp) (loop nbp ncp)))))))))) diff --git a/v8/src/runtime/runtime.pkg b/v8/src/runtime/runtime.pkg index 5a601ac6d..cbf0e6a0f 100644 --- a/v8/src/runtime/runtime.pkg +++ b/v8/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: runtime.pkg,v 14.186 1993/07/27 00:46:44 cph Exp $ +$Id: runtime.pkg,v 14.187 1993/07/28 03:42:14 cph Exp $ Copyright (c) 1988-1993 Massachusetts Institute of Technology @@ -221,6 +221,7 @@ MIT in each case. |# (files "infstr" "infutl") (parent ()) (export () + compiled-code-block/filename compiled-entry/block compiled-entry/dbg-object compiled-entry/filename