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
f2d8172f
Commit
f2d8172f
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Wrote NLX-ENTRY-MULTIPLE.
parent
dd1f63fe
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/nlx.lisp
+35
-12
35 additions, 12 deletions
compiler/mips/nlx.lisp
with
35 additions
and
12 deletions
compiler/mips/nlx.lisp
+
35
−
12
View file @
f2d8172f
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/nlx.lisp,v 1.
3
1990/03/0
5 21:07
:5
4
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/nlx.lisp,v 1.
4
1990/03/0
6 19:33
:5
3
wlott Exp $
;;;
;;; This file contains the definitions of VOPs used for non-local exit
;;; (throw, lexical exit, etc.)
...
...
@@ -222,20 +222,43 @@
(
define-vop
(
nlx-entry-multiple
)
(
:args
(
top
:scs
(
descriptor-reg
))
(
start
)
(
count
))
(
:args
(
top
:scs
(
descriptor-reg
)
:target
dst
)
(
start
:target
src
)
(
count
:target
num
))
(
:results
(
new-start
)
(
new-count
))
(
:temporary
(
:scs
(
any-reg
descriptor-reg
)
:type
fixnum
:from
(
:argument
0
))
dst
)
(
:temporary
(
:scs
(
any-reg
descriptor-reg
)
:type
fixnum
:from
(
:argument
1
))
src
)
(
:temporary
(
:scs
(
any-reg
descriptor-reg
)
:type
fixnum
:from
(
:argument
2
))
num
)
(
:temporary
(
:scs
(
descriptor-reg
))
temp
)
(
:save-p
:force-to-stack
)
#+
nil
(
:generator
30
(
unless
(
location=
a0
top
)
(
inst
lr
a0
top
))
(
inst
miscop
'clc::nlx-entry-receive-values
)
(
unless
(
location=
a0
r
)
(
inst
lr
r
a0
))
(
unless
(
location=
a1
r1
)
(
inst
lr
r1
a1
))))
(
let
((
loop
(
gen-label
))
(
done
(
gen-label
)))
;; Copy args.
(
move
dst
top
)
(
move
src
start
)
(
move
num
count
)
;; Establish results.
(
move
new-start
dst
)
(
inst
beq
num
zero-tn
done
)
(
move
new-count
num
t
)
;; Copy stuff on stack.
(
emit-label
loop
)
(
loadw
temp
src
)
(
inst
addiu
src
src
(
fixnum
1
))
(
storew
temp
dst
)
(
inst
addiu
num
num
(
fixnum
-1
))
(
inst
bne
num
zero-tn
loop
)
(
inst
addiu
dst
dst
(
fixnum
1
))
(
emit-label
done
)
(
move
csp-tn
dst
))))
;;; This VOP is just to force the TNs used in the cleanup onto the stack.
...
...
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