Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
d235a892
Commit
d235a892
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Added support for :RESERVE-LOCATIONS in DEFINE-STORAGE-CLASS.
parent
61b71512
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/vmdef.lisp
+11
-2
11 additions, 2 deletions
compiler/vmdef.lisp
with
11 additions
and
2 deletions
compiler/vmdef.lisp
+
11
−
2
View file @
d235a892
...
...
@@ -131,8 +131,8 @@
;;;
;;;
(
defmacro
define-storage-class
(
name
number
sb-name
&key
(
element-size
'1
)
(
alignment
'1
)
locations
save-p
alternate-scs
constant-scs
)
(
alignment
'1
)
locations
reserve-locations
save-p
alternate-scs
constant-scs
)
"Define-Storage-Class Name Number Storage-Base {Key Value}*
Define a storage class Name that uses the named Storage-Base. Number is a
small, non-negative integer that is used as an alias. The following
...
...
@@ -150,6 +150,10 @@
If the SB is :Finite, then this is a list of the offsets within the SB
that are in this SC.
:Reserve-Locations (Location*)
A subset of the Locations that the register allocator should try to
reserve for operand loading (instead of to hold variable values.)
:Save-P {T | NIL}
If T, then values stored in this SC must be saved in one of the
non-save-p :Alternate-SCs across calls.
...
...
@@ -169,6 +173,7 @@
(
check-type
number
sc-number
)
(
check-type
sb-name
symbol
)
(
check-type
locations
list
)
(
check-type
reserve-locations
list
)
(
check-type
save-p
boolean
)
(
check-type
alternate-scs
list
)
(
check-type
constant-scs
list
)
...
...
@@ -185,6 +190,9 @@
(
when
locations
(
error
":Locations is meaningless in a ~S SB."
(
sb-kind
sb
))))
(
unless
(
subsetp
reserve-locations
locations
)
(
error
"Reserve-Locations not a subset of Locations."
))
(
when
(
and
(
or
alternate-scs
constant-scs
)
(
eq
(
sb-kind
sb
)
:non-packed
))
(
error
"Meaningless to specify alternate or constant SCs in a ~S SB."
...
...
@@ -204,6 +212,7 @@
:element-size
,
element-size
:alignment
,
alignment
:locations
',locations
:reserve-locations
',reserve-locations
:save-p
',save-p
:number-stack-p
,
nstack-p
:alternate-scs
(
mapcar
#'
meta-sc-or-lose
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment