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
aadfe3c3
Commit
aadfe3c3
authored
33 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Don't include the binding-stack pointer in the dynamic state, because
ir2tran now explicity deals with it (by using unbind-to-here).
parent
80f93fe8
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
+9
-33
9 additions, 33 deletions
compiler/mips/nlx.lisp
with
9 additions
and
33 deletions
compiler/mips/nlx.lisp
+
9
−
33
View file @
aadfe3c3
...
...
@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/nlx.lisp,v 1.1
4
1991/0
2/20 15:14:53 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/nlx.lisp,v 1.1
5
1991/0
8/19 22:48:31 wlott
Exp $"
)
;;;
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/nlx.lisp,v 1.1
4
1991/0
2/20 15:14:53 ram
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/nlx.lisp,v 1.1
5
1991/0
8/19 22:48:31 wlott
Exp $
;;;
;;; This file contains the definitions of VOPs used for non-local exit
;;; (throw, lexical exit, etc.)
...
...
@@ -47,18 +47,16 @@
;;; use with the Save/Restore-Dynamic-Environment VOPs.
;;;
(
def-vm-support-routine
make-dynamic-state-tns
()
(
make-n-tns
5
*any-primitive-type*
))
(
make-n-tns
4
*any-primitive-type*
))
(
define-vop
(
save-dynamic-state
)
(
:results
(
catch
:scs
(
descriptor-reg
))
(
special
:scs
(
descriptor-reg
))
(
nfp
:scs
(
descriptor-reg
))
(
nsp
:scs
(
descriptor-reg
))
(
eval
:scs
(
descriptor-reg
)))
(
:vop-var
vop
)
(
:generator
13
(
load-symbol-value
catch
lisp::*current-catch-block*
)
(
move
special
bsp-tn
)
(
let
((
cur-nfp
(
current-nfp-tn
vop
)))
(
when
cur-nfp
(
move
nfp
cur-nfp
)))
...
...
@@ -67,39 +65,17 @@
(
define-vop
(
restore-dynamic-state
)
(
:args
(
catch
:scs
(
descriptor-reg
))
(
special
:scs
(
descriptor-reg
))
(
nfp
:scs
(
descriptor-reg
))
(
nsp
:scs
(
descriptor-reg
))
(
eval
:scs
(
descriptor-reg
)))
(
:temporary
(
:scs
(
descriptor-reg
))
symbol
value
)
(
:vop-var
vop
)
(
:generator
10
(
let
((
done
(
gen-label
))
(
skip
(
gen-label
))
(
loop
(
gen-label
)))
(
store-symbol-value
catch
lisp::*current-catch-block*
)
(
store-symbol-value
eval
lisp::*eval-stack-top*
)
(
let
((
cur-nfp
(
current-nfp-tn
vop
)))
(
when
cur-nfp
(
move
cur-nfp
nfp
)))
(
move
nsp-tn
nsp
)
(
inst
beq
special
bsp-tn
done
)
(
inst
nop
)
(
emit-label
loop
)
(
loadw
symbol
bsp-tn
(
-
binding-symbol-slot
binding-size
))
(
inst
beq
symbol
zero-tn
skip
)
(
loadw
value
bsp-tn
(
-
binding-value-slot
binding-size
))
(
storew
value
symbol
vm:symbol-value-slot
vm:other-pointer-type
)
(
storew
zero-tn
bsp-tn
(
-
binding-symbol-slot
binding-size
))
(
emit-label
skip
)
(
inst
addu
bsp-tn
bsp-tn
(
*
-2
vm:word-bytes
))
(
inst
bne
bsp-tn
special
loop
)
(
inst
nop
)
(
emit-label
done
))))
(
store-symbol-value
catch
lisp::*current-catch-block*
)
(
store-symbol-value
eval
lisp::*eval-stack-top*
)
(
let
((
cur-nfp
(
current-nfp-tn
vop
)))
(
when
cur-nfp
(
move
cur-nfp
nfp
)))
(
move
nsp-tn
nsp
)))
(
define-vop
(
current-stack-pointer
)
(
:results
(
res
:scs
(
any-reg
descriptor-reg
)))
...
...
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