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
24e359eb
Commit
24e359eb
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added pad-data-block macro.
Added closure-function-header and value-cell-header.
parent
970972ca
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/mips/parms.lisp
+29
-38
29 additions, 38 deletions
compiler/mips/parms.lisp
with
29 additions
and
38 deletions
compiler/mips/parms.lisp
+
29
−
38
View file @
24e359eb
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/parms.lisp,v 1.
7
1990/02/
18 20:24:38
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/parms.lisp,v 1.
8
1990/02/
20 18:19:04
wlott Exp $
;;;
;;; This file contains some parameterizations of various VM attributes for
;;; the MIPS. This file is separate from other stuff so that it can be compiled
...
...
@@ -23,7 +23,7 @@
(
export
'
(
sc-number-limit
most-positive-cost
word-bits
byte-bits
word-shift
word-bytes
target-byte-order
lowtag-bits
lowtag-mask
type-bits
type-mask
even-fixnum-type
function-pointer-type
type-mask
pad-data-block
even-fixnum-type
function-pointer-type
other-immediate-type
list-pointer-type
odd-fixnum-type
structure-pointer-type
other-pointer-type
bignum-type
ratio-type
single-float-type
double-float-type
complex-type
...
...
@@ -93,6 +93,9 @@
(
defconstant
type-mask
(
1-
(
ash
1
type-bits
))
"Mask to extract the type from a header word."
)
(
defmacro
pad-data-block
(
words
)
`
(
logandc2
(
+
(
ash
,
words
vm:word-shift
)
lowtag-mask
)
lowtag-mask
))
(
defmacro
defenum
((
&key
(
prefix
""
)
(
suffix
""
)
(
start
0
)
(
step
1
))
&rest
identifiers
)
...
...
@@ -141,40 +144,30 @@
ratio
single-float
double-float
complex
)
;;; The array types.
(
defenum
(
:suffix
-type
:start
(
+
(
ash
8
lowtag-bits
)
other-immediate-type
)
:step
(
ash
1
lowtag-bits
))
;; The simple arrays:
simple-array
;; The vectors:
simple-string
simple-bit-vector
simple-vector
simple-array-unsigned-byte-2
simple-array-unsigned-byte-4
simple-array-unsigned-byte-8
simple-array-unsigned-byte-16
simple-array-unsigned-byte-32
simple-array-single-float
simple-array-double-float
complex-string
complex-bit-vector
complex-vector
complex-array
)
;;; The other random types:
(
defenum
(
:suffix
-type
:start
(
+
(
ash
24
lowtag-bits
)
other-immediate-type
)
:step
(
ash
1
lowtag-bits
))
complex
simple-array
simple-string
simple-bit-vector
simple-vector
simple-array-unsigned-byte-2
simple-array-unsigned-byte-4
simple-array-unsigned-byte-8
simple-array-unsigned-byte-16
simple-array-unsigned-byte-32
simple-array-single-float
simple-array-double-float
complex-string
complex-bit-vector
complex-vector
complex-array
code-header
function-header
closure-function-header
return-pc-header
closure-header
value-cell-header
symbol-header
character
SAP
...
...
@@ -208,12 +201,10 @@
(
let
((
posn
(
position
symbol
initial-symbols
)))
(
unless
posn
(
error
"~S isn't one of the initial symbols."
symbol
))
(
macrolet
((
round-to-dual-word
(
x
)
`
(
logandc2
(
1+
,
x
)
1
)))
(
+
(
ash
(
+
(
*
posn
(
round-to-dual-word
symbol-size
))
(
round-to-dual-word
(
1-
symbol-size
)))
word-shift
)
other-pointer-type
(
-
list-pointer-type
)))))
(
+
(
*
posn
(
pad-data-block
symbol-size
))
(
pad-data-block
(
1-
symbol-size
))
other-pointer-type
(
-
list-pointer-type
))))
...
...
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