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
5c9ef7e4
Commit
5c9ef7e4
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added note-this-locations to the error macros.
parent
0695461f
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
+12
-11
12 additions, 11 deletions
compiler/mips/macros.lisp
with
12 additions
and
11 deletions
compiler/mips/macros.lisp
+
12
−
11
View file @
5c9ef7e4
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/macros.lisp,v 1.3
4
1990/0
6/20 21:34:53 ram
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/macros.lisp,v 1.3
5
1990/0
7/03 06:35:44 wlott
Exp $
;;;
;;; This file contains various useful macros for generating MIPS code.
;;;
...
...
@@ -451,8 +451,9 @@
;;;; Error Code
(
eval-when
(
compile
load
eval
)
(
defun
emit-error-break
(
kind
code
values
)
`
((
inst
break
,
kind
)
(
defun
emit-error-break
(
vop
kind
code
values
)
`
((
note-this-location
,
vop
:internal-error
)
(
inst
break
,
kind
)
(
inst
byte
(
error-number-or-lose
',code
))
,@
(
mapcar
#'
(
lambda
(
tn
)
`
(
let
((
tn
,
tn
))
...
...
@@ -462,29 +463,29 @@
(
inst
byte
0
)
(
align
vm:word-shift
))))
(
defmacro
error-call
(
error-code
&rest
values
)
(
defmacro
error-call
(
vop
error-code
&rest
values
)
"Cause an error. ERROR-CODE is the error to cause."
(
cons
'progn
(
emit-error-break
vm:error-trap
error-code
values
)))
(
emit-error-break
vop
vm:error-trap
error-code
values
)))
(
defmacro
cerror-call
(
label
error-code
&rest
values
)
(
defmacro
cerror-call
(
vop
label
error-code
&rest
values
)
"Cause a continuable error. If the error is continued, execution resumes at
LABEL."
`
(
progn
(
inst
b
,
label
)
,@
(
emit-error-break
vm:cerror-trap
error-code
values
)))
,@
(
emit-error-break
vop
vm:cerror-trap
error-code
values
)))
(
defmacro
generate-error-code
(
error-code
&rest
values
)
(
defmacro
generate-error-code
(
vop
error-code
&rest
values
)
"Generate-Error-Code Error-code Value*
Emit code for an error with the specified Error-Code and context Values."
`
(
assemble
(
*elsewhere*
)
(
let
((
start-lab
(
gen-label
)))
(
emit-label
start-lab
)
(
error-call
,
error-code
,@
values
)
(
error-call
,
vop
,
error-code
,@
values
)
start-lab
)))
(
defmacro
generate-cerror-code
(
error-code
&rest
values
)
(
defmacro
generate-cerror-code
(
vop
error-code
&rest
values
)
"Generate-CError-Code Error-code Value*
Emit code for a continuable error with the specified Error-Code and
context Values. If the error is continued, execution resumes after
...
...
@@ -496,7 +497,7 @@
(
assemble
(
*elsewhere*
)
(
let
((
,
error
(
gen-label
)))
(
emit-label
,
error
)
(
cerror-call
,
continue
,
error-code
,@
values
)
(
cerror-call
,
vop
,
continue
,
error-code
,@
values
)
,
error
)))))
;;; PSEUDO-ATOMIC -- Handy macro for making sequences look atomic.
...
...
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