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
a1ab74de
Commit
a1ab74de
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Moved the undefined-function into C land.
parent
0f659f4e
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
+1
-37
1 addition, 37 deletions
assembly/mips/assem-rtns.lisp
with
1 addition
and
37 deletions
assembly/mips/assem-rtns.lisp
+
1
−
37
View file @
a1ab74de
...
@@ -7,48 +7,12 @@
...
@@ -7,48 +7,12 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/mips/assem-rtns.lisp,v 1.1
8
1990/0
7/06 20:49:30
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/mips/assem-rtns.lisp,v 1.1
9
1990/0
9/18 00:35:43
wlott Exp $
;;;
;;;
;;;
;;;
(
in-package
"C"
)
(
in-package
"C"
)
;;;; The undefined-function.
;;; Just signal an undefined-symbol error. Note: this must look like a
;;; function, because it magically gets called in place of a function when
;;; there is no real function to call.
(
eval-when
(
eval
)
(
define-assembly-routine
(
undefined-function
()
(
:temp
cname
any-reg
cname-offset
)
(
:temp
lexenv
any-reg
lexenv-offset
)
(
:temp
function
any-reg
code-offset
)
(
:temp
nargs
any-reg
nargs-offset
)
(
:temp
lip
interior-reg
lip-offset
)
(
:temp
temp
non-descriptor-reg
nl0-offset
))
;; Allocate function header.
(
align
vm:lowtag-bits
)
(
inst
word
vm:function-header-type
)
(
dotimes
(
i
(
1-
vm:function-header-code-offset
))
(
inst
word
0
))
;; Cause the error.
(
cerror-call
nil
continue
undefined-symbol-error
cname
)
continue
(
let
((
not-sym
(
generate-cerror-code
nil
object-not-symbol-error
cname
)))
(
test-simple-type
cname
temp
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
))
)
; eval-when (eval)
;;;; 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