Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cmucl
cmucl
Commits
7860c68d
Commit
7860c68d
authored
May 03, 1992
by
wlott
Browse files
Changed to allow packing of restricted TNs in reserved locations.
parent
ecec63b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/pack.lisp
View file @
7860c68d
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/pack.lisp,v 1.4
4
199
1/11/16 16:03:02 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/pack.lisp,v 1.4
5
199
2/05/03 21:45:55 wlott
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -959,7 +959,7 @@
;;; of the registers. This way, all of these temps probably end up in one
;;; register.
;;;
(
defun
select-location
(
tn
sc
)
(
defun
select-location
(
tn
sc
&optional
use-reserved-locs
)
(
declare
(
type
tn
tn
)
(
type
sc
sc
)
(
inline
member
))
(
let*
((
sb
(
sc-sb
sc
))
(
element-size
(
sc-element-size
sc
))
...
...
@@ -980,7 +980,9 @@
(
if
(
or
(
eq
(
sb-kind
sb
)
:unbounded
)
(
and
(
member
current-start
(
sc-locations
sc
))
(
not
(
member
current-start
(
sc-reserve-locations
sc
)))))
(
or
use-reserved-locs
(
not
(
member
current-start
(
sc-reserve-locations
sc
))))))
(
dotimes
(
i
element-size
(
return-from
select-location
current-start
))
(
let
((
offset
(
+
current-start
i
)))
...
...
@@ -1418,6 +1420,8 @@
(
not
(
and
(
minusp
(
tn-cost
tn
))
(
sc-save-p
sc
))))
(
let
((
loc
(
or
(
find-ok-target-offset
original
sc
)
(
select-location
original
sc
)
(
and
restricted
(
select-location
original
sc
t
))
(
when
(
eq
(
sb-kind
(
sc-sb
sc
))
:unbounded
)
(
grow-sc
sc
)
(
or
(
select-location
original
sc
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment