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
f13387a8
Commit
f13387a8
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Initial revision
parent
27b905af
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/support.lisp
+54
-0
54 additions, 0 deletions
assembly/mips/support.lisp
with
54 additions
and
0 deletions
assembly/mips/support.lisp
0 → 100644
+
54
−
0
View file @
f13387a8
;;; -*- Package: C; Log: C.Log -*-
;;;
;;; **********************************************************************
;;; This code was written as part of the Spice Lisp project at
;;; Carnegie-Mellon University, and has been placed in the public domain.
;;; If you want to use this code or any part of Spice Lisp, please contact
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/mips/support.lisp,v 1.1 1990/10/31 23:44:31 wlott Exp $
;;;
;;; This file contains the machine specific support routines needed by
;;; the file assembler.
;;;
(
in-package
"C"
)
(
defun
generate-call-sequence
(
name
style
vop
temp
nfp-save
lra
)
(
ecase
style
(
:raw
`
((
inst
jal
(
make-fixup
',name
:assembly-routine
))
(
inst
nop
)))
(
:full-call
`
((
let
((
lra-label
(
gen-label
))
(
cur-nfp
(
current-nfp-tn
,
vop
)))
(
when
cur-nfp
(
store-stack-tn
,
nfp-save
cur-nfp
))
(
inst
compute-lra-from-code
,
lra
code-tn
lra-label
,
temp
)
(
inst
j
(
make-fixup
',name
:assembly-routine
))
(
inst
nop
)
(
emit-return-pc
lra-label
)
(
note-this-location
,
vop
:unknown-return
)
(
move
csp-tn
old-fp-tn
)
(
inst
nop
)
(
inst
compute-code-from-lra
code-tn
code-tn
lra-label
,
temp
)
(
when
cur-nfp
(
load-stack-tn
cur-nfp
,
nfp-save
)))))
(
:none
`
((
inst
j
(
make-fixup
',name
:assembly-routine
))
(
inst
nop
)))))
(
defun
generate-return-sequence
(
style
)
(
ecase
style
(
:raw
`
((
inst
j
lip-tn
)
(
inst
nop
)))
(
:full-call
`
((
lisp-return
(
make-random-tn
:kind
:normal
:sc
(
sc-or-lose
'descriptor-reg
)
:offset
lra-offset
)
lip-tn
:offset
2
)))
(
:none
)))
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