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
90fbe9eb
"README.md" did not exist on "33c555563bc63a12227eb0c5e3cccf5d7ff35569"
Commit
90fbe9eb
authored
33 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added support for static-functions in addition to static symbols.
parent
cbbc5323
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/generic/utils.lisp
+16
-3
16 additions, 3 deletions
compiler/generic/utils.lisp
with
16 additions
and
3 deletions
compiler/generic/utils.lisp
+
16
−
3
View file @
90fbe9eb
...
...
@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/utils.lisp,v 1.
2
199
1
/0
2/20 15:17:25 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/utils.lisp,v 1.
3
199
2
/0
3/12 15:25:02 wlott
Exp $"
)
;;;
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/utils.lisp,v 1.
2
199
1
/0
2/20 15:17:25 ram
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/utils.lisp,v 1.
3
199
2
/0
3/12 15:25:02 wlott
Exp $
;;;
;;; Utility functions needed by the back end to generate code.
;;;
...
...
@@ -20,7 +20,8 @@
(
in-package
"VM"
)
(
export
'
(
fixnum
static-symbol-p
static-symbol-offset
offset-static-symbol
))
(
export
'
(
fixnum
static-symbol-p
static-symbol-offset
offset-static-symbol
static-function-offset
))
...
...
@@ -59,3 +60,15 @@
(
error
"Byte offset, ~D, is not correct."
offset
))
(
elt
static-symbols
n
)))
(
defun
static-function-offset
(
name
)
"Return the (byte) offset from NIL to the start of the fdefn object
for the static function NAME."
(
let
((
static-syms
(
length
static-symbols
))
(
static-function-index
(
position
name
static-functions
)))
(
unless
static-function-index
(
error
"~S isn't a static function."
name
))
(
+
(
*
static-syms
(
pad-data-block
symbol-size
))
(
pad-data-block
(
1-
symbol-size
))
(
-
list-pointer-type
)
(
*
static-function-index
(
pad-data-block
fdefn-size
))
(
*
fdefn-raw-addr-slot
word-bytes
))))
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