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
66bd059e
Commit
66bd059e
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Made the undefined function signal a continuable error.
parent
3ad0ed83
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
assembly/mips/assem-rtns.lisp
+22
-3
22 additions, 3 deletions
assembly/mips/assem-rtns.lisp
with
22 additions
and
3 deletions
assembly/mips/assem-rtns.lisp
+
22
−
3
View file @
66bd059e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/mips/assem-rtns.lisp,v 1.
1
1990/03/
05 21:13:52
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/mips/assem-rtns.lisp,v 1.
2
1990/03/
12 22:39:11
wlott Exp $
;;;
;;;
;;;
;;;
(
in-package
"C"
)
(
in-package
"C"
)
...
@@ -21,15 +21,34 @@
...
@@ -21,15 +21,34 @@
;;; there is no real function to call.
;;; there is no real function to call.
(
define-assembly-routine
(
undefined-function
(
:arg
name
:sc
any-reg
(
define-assembly-routine
(
undefined-function
(
:arg
name
:sc
any-reg
:offset
cname-offset
))
:offset
cname-offset
)
(
:temp
lexenv
:sc
any-reg
:offset
lexenv-offset
)
(
:temp
function
:sc
any-reg
:offset
code-offset
)
(
:temp
nargs
:sc
any-reg
:offset
nargs-offset
)
(
:temp
lip
:sc
interior-reg
)
(
:temp
temp
:sc
non-descriptor-reg
))
;; Allocate function header.
;; Allocate function header.
(
align
vm:lowtag-bits
)
(
align
vm:lowtag-bits
)
(
inst
word
vm:function-header-type
)
(
inst
word
vm:function-header-type
)
(
dotimes
(
i
(
1-
vm:function-header-code-offset
))
(
dotimes
(
i
(
1-
vm:function-header-code-offset
))
(
nop
))
(
nop
))
;; Cause the error.
;; Cause the error.
(
error-call
di:undefined-symbol-error
name
)
)
(
c
error-call
continue
di:undefined-symbol-error
name
)
continue
(
let
((
not-sym
(
generate-cerror-code
'undefined-function
di:object-not-symbol-error
cname
)))
(
test-simple-type
cname
name
not-sym
t
vm:symbol-header-type
))
(
loadw
lexenv
cname
vm:symbol-function-slot
vm:other-pointer-type
)
(
loadw
function
lexenv
vm:closure-function-slot
vm:function-pointer-type
)
(
lisp-jump
function
lip
))
;;;; Non-local exit noise.
;;;; Non-local exit noise.
...
...
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