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
48eb5482
Commit
48eb5482
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added assembler routine support: DUMP-ASSEMBLER-ROUTINE dumps the routine,
and :ASSEMBLY fixups refer to them.
parent
cdcaef79
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/dump.lisp
+19
-8
19 additions, 8 deletions
compiler/dump.lisp
with
19 additions
and
8 deletions
compiler/dump.lisp
+
19
−
8
View file @
48eb5482
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dump.lisp,v 1.
4
1990/0
2/13 17:07:00
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dump.lisp,v 1.
5
1990/0
3/05 20:48:53
wlott Exp $
;;;
;;;
;;; This file contains stuff that knows about dumping FASL files.
;;; This file contains stuff that knows about dumping FASL files.
;;;
;;;
...
@@ -390,6 +390,18 @@
...
@@ -390,6 +390,18 @@
handle
))))
handle
))))
(
defun
dump-assembler-routines
(
code-vector
length
routines
file
)
(
dump-fop
'lisp::fop-assembler-code
file
)
(
quick-dump-number
length
4
file
)
(
write-string
code-vector
(
fasl-file-stream
file
)
:end
length
)
(
dolist
(
routine
routines
)
(
dump-object
(
car
routine
)
file
)
(
dump-fop
'lisp::fop-assembler-routine
file
)
(
quick-dump-number
(
label-location
(
cdr
routine
))
4
file
))
(
dump-pop
file
))
;;; Dump-Fixups -- Internal
;;; Dump-Fixups -- Internal
;;;
;;;
;;; Dump all the fixups. Currently there are only miscop fixups, and we
;;; Dump all the fixups. Currently there are only miscop fixups, and we
...
@@ -405,12 +417,6 @@
...
@@ -405,12 +417,6 @@
(
let
((
offset
(
second
fixup
))
(
let
((
offset
(
second
fixup
))
(
value
(
third
fixup
)))
(
value
(
third
fixup
)))
(
ecase
(
first
fixup
)
(
ecase
(
first
fixup
)
#+
nil
(
:miscop
(
assert
(
symbolp
value
))
(
dump-object
value
file
)
(
dump-fop
'lisp::fop-user-miscop-fixup
file
)
(
quick-dump-number
offset
4
file
))
(
:foreign
(
:foreign
(
assert
(
stringp
value
))
(
assert
(
stringp
value
))
(
dump-fop
'lisp::fop-foreign-fixup
file
)
(
dump-fop
'lisp::fop-foreign-fixup
file
)
...
@@ -419,7 +425,12 @@
...
@@ -419,7 +425,12 @@
(
assert
(
<
len
256
))
(
assert
(
<
len
256
))
(
dump-byte
len
file
)
(
dump-byte
len
file
)
(
dotimes
(
i
len
)
(
dotimes
(
i
len
)
(
dump-byte
(
char-code
(
schar
value
i
))
file
)))))))
(
dump-byte
(
char-code
(
schar
value
i
))
file
))))
(
:assembly
(
assert
(
symbolp
value
))
(
dump-object
value
file
)
(
dump-fop
'lisp::fop-assembler-fixup
file
)
(
quick-dump-number
offset
4
file
)))))
(
dump-fop
'lisp::fop-pop-for-effect
file
))
(
dump-fop
'lisp::fop-pop-for-effect
file
))
(
undefined-value
))
(
undefined-value
))
...
...
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