New procedure COMPILED-CODE-BLOCK/FILENAME.
authorChris Hanson <org/chris-hanson/cph>
Wed, 28 Jul 1993 03:42:14 +0000 (03:42 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 28 Jul 1993 03:42:14 +0000 (03:42 +0000)
v7/src/runtime/infutl.scm
v7/src/runtime/runtime.pkg
v8/src/runtime/infutl.scm
v8/src/runtime/runtime.pkg

index 975b82f7bd2895002b9c8319f8d1a6244a158659..401e2bc123d997a80f57dcfd3424cd3f6d9339b5 100644 (file)
@@ -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"))))))))
-
+\f
 (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)))))
-
+\f
 (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))))))))))
 \f
index 5a601ac6d78bed69d58baf7f2a7c8b8daedd1dbe..cbf0e6a0f092fa4f80896b5b495e3338422902f2 100644 (file)
@@ -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
index 975b82f7bd2895002b9c8319f8d1a6244a158659..401e2bc123d997a80f57dcfd3424cd3f6d9339b5 100644 (file)
@@ -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"))))))))
-
+\f
 (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)))))
-
+\f
 (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))))))))))
 \f
index 5a601ac6d78bed69d58baf7f2a7c8b8daedd1dbe..cbf0e6a0f092fa4f80896b5b495e3338422902f2 100644 (file)
@@ -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