From: Chris Hanson Date: Tue, 11 Aug 1987 06:11:48 +0000 (+0000) Subject: Allocate rgraphs with correct size. X-Git-Tag: 20090517-FFI~13161 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=63cd266b8921d2c92821131aed70fbe3ec765cd3;p=mit-scheme.git Allocate rgraphs with correct size. --- diff --git a/v7/src/compiler/rtlbase/rgraph.scm b/v7/src/compiler/rtlbase/rgraph.scm index 32df855e6..f8d2960fc 100644 --- a/v7/src/compiler/rtlbase/rgraph.scm +++ b/v7/src/compiler/rtlbase/rgraph.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/rtlbase/rgraph.scm,v 1.1 1987/08/07 17:06:12 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/rtlbase/rgraph.scm,v 1.2 1987/08/11 06:11:48 cph Exp $ Copyright (c) 1987 Massachusetts Institute of Technology @@ -36,7 +36,9 @@ MIT in each case. |# (declare (usual-integrations)) -(define-vector-slots rgraph 0 +(define-structure (rgraph (type vector) + (copier false) + (constructor false)) edge n-registers continuations @@ -47,14 +49,14 @@ MIT in each case. |# register-live-length register-crosses-call? ) +(define (rgraph-allocate) + (make-vector 9 false)) + (define-integrable rgraph-register-renumber rgraph-register-bblock) (define-integrable set-rgraph-register-renumber! set-rgraph-register-bblock!) (define *rgraphs*) (define *current-rgraph*) -(define (rgraph-allocate) - (make-vector 10 false)) - (define (rgraph-entry-edges rgraph) (cons (rgraph-edge rgraph) (map continuation-rtl-edge (rgraph-continuations rgraph))))