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
2f39ad7d
Commit
2f39ad7d
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Seperated out the structure case from the vector case, 'cause structures
are no longer simple-vectors.
parent
27155f67
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
+23
-7
23 additions, 7 deletions
compiler/dump.lisp
with
23 additions
and
7 deletions
compiler/dump.lisp
+
23
−
7
View file @
2f39ad7d
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dump.lisp,v 1.1
3
1990/10/
04 15:08:02 ram
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dump.lisp,v 1.1
4
1990/10/
10 13:13:05 wlott
Exp $
;;;
;;; This file contains stuff that knows about dumping FASL files.
;;;
...
...
@@ -80,7 +80,7 @@
(
defstruct
circularity
;;
;; Kind of modification to make to create circularity.
(
type
nil
:type
(
member
:rplaca
:rplacd
:svset
))
(
type
nil
:type
(
member
:rplaca
:rplacd
:svset
:struct-set
))
;;
;; Object containing circularity.
object
...
...
@@ -665,10 +665,10 @@
(
dump-fop
'lisp::fop-nthcdr
file
)
(
quick-dump-number
i
4
file
)))))
(
dump-fop
(
case
(
circularity-type
info
)
(
dump-fop
(
e
case
(
circularity-type
info
)
(
:rplaca
'lisp::fop-rplaca
)
(
:rplacd
'lisp::fop-rplacd
)
(
:svset
'lisp::fop-svset
))
(
(
:svset
:struct-set
)
'lisp::fop-svset
))
file
)
(
quick-dump-number
(
gethash
(
circularity-object
info
)
table
)
4
file
)
(
quick-dump-number
(
circularity-index
info
)
4
file
))))
...
...
@@ -1068,7 +1068,23 @@
;;; Dump a structure.
(
defun
dump-structure
(
obj
file
)
(
dump-vector
obj
file
)
(
dump-fop
'lisp::fop-structure
file
))
(
defun
dump-structure
(
struct
file
)
(
note-potential-circularity
struct
file
)
(
do
((
index
0
(
1+
index
))
(
length
(
structure-length
struct
))
(
circ
(
fasl-file-circularity-table
file
)))
((
=
index
length
)
(
dump-fop*
length
lisp::fop-small-struct
lisp::fop-struct
file
))
(
let*
((
obj
(
structure-ref
struct
index
))
(
ref
(
gethash
obj
circ
)))
(
cond
(
ref
(
push
(
make-circularity
:type
:struct-set
:object
struct
:index
index
:value
obj
:enclosing-object
ref
)
*circularities-detected*
)
(
sub-dump-object
nil
file
))
(
t
(
sub-dump-object
obj
file
))))))
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