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
dd2bdf57
Commit
dd2bdf57
authored
21 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Allow stack frames larger than 4096 bytes to be used. (Was a
limitation of the 13-bit signed offset in instructions.)
parent
66b1ed39
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/sparc/call.lisp
+13
-5
13 additions, 5 deletions
compiler/sparc/call.lisp
with
13 additions
and
5 deletions
compiler/sparc/call.lisp
+
13
−
5
View file @
dd2bdf57
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/call.lisp,v 1.3
6
200
3/10/27 18:30:27
toy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/sparc/call.lisp,v 1.3
7
200
4/04/16 04:49:25 r
toy Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -204,8 +204,12 @@
...
@@ -204,8 +204,12 @@
(
inst
add
csp-tn
vm:word-bytes
))
(
inst
add
csp-tn
vm:word-bytes
))
)
)
;; Build our stack frames.
;; Build our stack frames.
(
inst
add
csp-tn
cfp-tn
(
let
((
size
(
*
vm:word-bytes
(
sb-allocated-size
'control-stack
))))
(
*
vm:word-bytes
(
sb-allocated-size
'control-stack
)))
(
cond
((
typep
size
'
(
signed-byte
13
))
(
inst
add
csp-tn
cfp-tn
size
))
(
t
(
inst
li
temp
size
)
(
inst
add
csp-tn
cfp-tn
temp
))))
(
let
((
nfp-tn
(
current-nfp-tn
vop
)))
(
let
((
nfp-tn
(
current-nfp-tn
vop
)))
(
when
nfp-tn
(
when
nfp-tn
(
inst
sub
nsp-tn
(
bytes-needed-for-non-descriptor-stack-frame
))
(
inst
sub
nsp-tn
(
bytes-needed-for-non-descriptor-stack-frame
))
...
@@ -233,8 +237,12 @@
...
@@ -233,8 +237,12 @@
(
inst
b
:gt
zero-out-loop
)
(
inst
b
:gt
zero-out-loop
)
(
inst
stn
zero-tn
csp-tn
temp
)
(
inst
stn
zero-tn
csp-tn
temp
)
))
))
(
inst
add
csp-tn
csp-tn
(
let
((
size
(
*
vm:word-bytes
(
sb-allocated-size
'control-stack
))))
(
*
vm:word-bytes
(
sb-allocated-size
'control-stack
)))
(
cond
((
typep
size
'
(
signed-byte
13
))
(
inst
add
csp-tn
csp-tn
size
))
(
t
(
inst
li
temp
size
)
(
inst
add
csp-tn
csp-tn
temp
))))
(
when
(
ir2-environment-number-stack-p
callee
)
(
when
(
ir2-environment-number-stack-p
callee
)
(
inst
sub
nsp-tn
(
bytes-needed-for-non-descriptor-stack-frame
))
(
inst
sub
nsp-tn
(
bytes-needed-for-non-descriptor-stack-frame
))
(
inst
add
nfp
nsp-tn
number-stack-displacement
))
(
inst
add
nfp
nsp-tn
number-stack-displacement
))
...
...
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