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
fab32dbf
Commit
fab32dbf
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Tweeked the ERROR-CALL macro to no longer bind a gensym, but then never use
it.
parent
f44f451f
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/macros.lisp
+10
-11
10 additions, 11 deletions
compiler/mips/macros.lisp
with
10 additions
and
11 deletions
compiler/mips/macros.lisp
+
10
−
11
View file @
fab32dbf
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/macros.lisp,v 1.
8
1990/02/1
1 19:25:45 ch
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/macros.lisp,v 1.
9
1990/02/1
6 08:36:54 wlott
Exp $
;;;
;;; This file contains various useful macros for generating MIPS code.
;;;
...
...
@@ -92,16 +92,15 @@
;;;
(
defmacro
error-call
(
error-code
&rest
values
)
(
once-only
((
n-error-code
error-code
))
(
unless
(
<
(
length
values
)
register-arg-count
)
(
error
"Can't use ERROR-CALL with ~D values"
(
length
values
)))
`
(
progn
,@
(
collect
((
args
))
(
dotimes
(
i
(
length
values
))
(
args
`
(
move
(
nth
,
i
register-argument-tns
)
,
(
nth
i
values
))))
(
args
))
(
inst
break
,
error-code
))))
(
unless
(
<
(
length
values
)
register-arg-count
)
(
error
"Can't use ERROR-CALL with ~D values"
(
length
values
)))
`
(
progn
,@
(
mapcar
#'
(
lambda
(
arg
value
)
`
(
move
',arg
,
value
))
(
subseq
register-argument-tns
0
(
length
values
))
values
)
(
inst
break
,
error-code
)))
(
defmacro
generate-error-code
(
node
error-code
&rest
values
)
"Generate-Error-Code Node Error-code Value*
...
...
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