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
8e452b5c
Commit
8e452b5c
authored
20 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Remove old, unused macro, with-fixed-allocation. Add some comments
for the allocation macro.
parent
e1d386bb
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/ppc/macros.lisp
+9
-17
9 additions, 17 deletions
compiler/ppc/macros.lisp
with
9 additions
and
17 deletions
compiler/ppc/macros.lisp
+
9
−
17
View file @
8e452b5c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/macros.lisp,v 1.
3
2004/08/0
8 11:15:12
rtoy Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ppc/macros.lisp,v 1.
4
2004/08/0
9 03:34:54
rtoy Exp $
;;;
;;;
;;; This file contains various useful macros for generating PC code.
;;; This file contains various useful macros for generating PC code.
;;;
;;;
...
@@ -165,6 +165,14 @@
...
@@ -165,6 +165,14 @@
;;;; Storage allocation:
;;;; Storage allocation:
;; Allocation macro
;;
;; This macro does the appropriate stuff to allocate space.
;;
;; The allocated space is stored in RESULT-TN with the lowtag LOWTAG
;; applied. The amount of space to be allocated is SIZE bytes (which
;; must be a multiple of the lisp object size).
;;
(
defmacro
allocation
(
result-tn
size
lowtag
&key
stack-p
temp-tn
)
(
defmacro
allocation
(
result-tn
size
lowtag
&key
stack-p
temp-tn
)
(
declare
(
ignore
stack-p
temp-tn
))
(
declare
(
ignore
stack-p
temp-tn
))
(
let
((
alloc-size
(
gensym
)))
(
let
((
alloc-size
(
gensym
)))
...
@@ -179,22 +187,6 @@
...
@@ -179,22 +187,6 @@
(
inst
addi
alloc-tn
alloc-tn
,
alloc-size
)
(
inst
addi
alloc-tn
alloc-tn
,
alloc-size
)
(
inst
add
alloc-tn
alloc-tn
,
alloc-size
)))))
(
inst
add
alloc-tn
alloc-tn
,
alloc-size
)))))
#+
nil
(
defmacro
with-fixed-allocation
((
result-tn
flag-tn
temp-tn
type-code
size
)
&body
body
)
"Do stuff to allocate an other-pointer object of fixed Size with a single
word header having the specified Type-Code. The result is placed in
Result-TN, and Temp-TN is a non-descriptor temp (which may be randomly used
by the body.) The body is placed inside the PSEUDO-ATOMIC, and presumably
initializes the object."
(
once-only
((
result-tn
result-tn
)
(
temp-tn
temp-tn
)
(
flag-tn
flag-tn
)
(
type-code
type-code
)
(
size
size
))
`
(
pseudo-atomic
(
,
flag-tn
:extra
(
pad-data-block
,
size
))
(
inst
ori
,
result-tn
alloc-tn
other-pointer-type
)
(
inst
lr
,
temp-tn
(
logior
(
ash
(
1-
,
size
)
type-bits
)
,
type-code
))
(
storew
,
temp-tn
,
result-tn
0
other-pointer-type
)
,@
body
)))
(
defmacro
with-fixed-allocation
((
result-tn
flag-tn
temp-tn
type-code
size
(
defmacro
with-fixed-allocation
((
result-tn
flag-tn
temp-tn
type-code
size
&key
(
lowtag
other-pointer-type
))
&key
(
lowtag
other-pointer-type
))
&body
body
)
&body
body
)
...
...
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