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
8cbb18c3
Commit
8cbb18c3
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
added foreign call vops.
parent
b80045aa
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/subprim.lisp
+68
-2
68 additions, 2 deletions
compiler/mips/subprim.lisp
with
68 additions
and
2 deletions
compiler/mips/subprim.lisp
+
68
−
2
View file @
8cbb18c3
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/subprim.lisp,v 1.
5
1990/04/2
4 02:56:39
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/subprim.lisp,v 1.
6
1990/04/2
5 21:46:44
wlott Exp $
;;;
;;; Linkage information for standard static functions, and random vops.
;;;
...
...
@@ -39,7 +39,7 @@
(
emit-label
loop
)
(
inst
beq
ptr
null-tn
done
)
(
nop
)
(
inst
nop
)
(
simple-test-simple-type
ptr
temp
not-list
t
vm:list-pointer-type
)
...
...
@@ -55,3 +55,69 @@
(
define-static-function
length
(
object
)
:translate
length
)
;;;; Debugger support
(
define-vop
(
current-sp
)
(
:results
(
res
:scs
(
sap-reg
)))
(
:generator
1
(
move
res
csp-tn
)))
(
define-vop
(
read-control-stack
sap-ref
)
(
:results
(
result
:scs
(
descriptor-reg
)))
(
:variant
:pointer
nil
))
(
define-vop
(
write-control-stack
sap-set
)
(
:arg-types
system-area-pointer
fixnum
*
)
(
:results
(
result
:scs
(
descriptor-reg
)))
(
:variant
:pointer
nil
))
;;;; Foreign function call interfaces.
(
define-vop
(
foreign-symbol-address
)
(
:info
foreign-symbol
)
(
:result
(
res
:scs
(
sap-reg
)))
(
:generator
2
(
inst
li
res
(
make-fixup
foreign-symbol
:foreign
))))
(
define-vop
(
call-out
)
(
:args
(
args
:more
t
))
(
:ignore
args
)
(
:save-p
t
)
(
:info
function
)
(
:results
(
result
:scs
(
sap-reg
signed-reg
unsigned-reg
)))
(
:temporary
(
:sc
any-reg
:offset
2
)
v0
)
(
:temporary
(
:sc
any-reg
:offset
lra-offset
)
lra
)
(
:temporary
(
:sc
any-reg
:offset
code-offset
)
code
)
(
:temporary
(
:scs
(
any-reg
)
:type
fixnum
)
temp
)
(
:generator
0
(
let
((
lra-label
(
gen-label
)))
(
inst
li
v0
(
make-fixup
function
:foreign
))
(
inst
li
temp
(
make-fixup
"call_into_c"
:foreign
))
(
inst
j
temp
)
(
inst
compute-lra-from-code
lra
code
lra-label
)
(
align
vm:lowtag-bits
)
(
emit-label
lra-label
)
(
inst
lra-header-word
)
(
move
result
v0
))))
(
define-vop
(
alloc-number-stack-space
)
(
:info
amount
)
(
:translate
%alloc-number-stack-space
)
(
:results
(
result
:scs
(
sap-reg
)))
(
:generator
0
(
inst
addu
nsp-tn
nsp-tn
(
-
amount
))
(
move
result
nsp-tn
)))
(
define-vop
(
dealloc-number-stack-space
)
(
:info
amount
)
(
:policy
:fast-safe
)
(
:translate
%dealloc-number-stack-space
)
(
:generator
0
(
inst
addu
nsp-tn
nsp-tn
amount
)))
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