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
e7b9fa89
Commit
e7b9fa89
authored
35 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
merged non-descriptor branch:
Added new code generation utilities generalized for number stack support.
parent
4dfe7952
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/codegen.lisp
+18
-5
18 additions, 5 deletions
compiler/codegen.lisp
with
18 additions
and
5 deletions
compiler/codegen.lisp
+
18
−
5
View file @
e7b9fa89
...
...
@@ -18,13 +18,26 @@
;;;; Utilities used during code generation.
;;;
Current-Frame
-Size -- Interface
;;;
SB-Allocated
-Size -- Interface
;;;
;;; The size of the currently compiled component's stack frame in bytes.
(
defun
sb-allocated-size
(
name
)
"The size of the Name'd SB in the currently compiled component. Useful
mainly for finding the size for allocating stack frames."
(
finite-sb-current-size
(
sb-or-lose
name
)))
;;; Current-NFP-TN -- Interface
;;;
(
defun
current-frame-size
()
(
*
4
(
finite-sb-current-size
(
sc-sb
(
svref
*sc-numbers*
(
sc-number-or-lose
'stack
))))))
(
defun
current-nfp-tn
(
vop
)
"Return the TN that is used to hold the number stack frame-pointer in VOP's
function. Returns NIL if no number stack frame was allocated."
(
unless
(
zerop
(
sb-allocated-size
'number-stack
))
(
let
((
block
(
ir2-block-block
(
vop-block
vop
))))
(
when
(
ir2-environment-number-stack-p
(
environment-info
(
lambda-environment
(
block-lambda
block
))))
(
ir2-component-nfp
(
component-info
(
block-component
block
)))))))
;;; Generate-Code -- Interface
...
...
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