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
bc3df0a8
Commit
bc3df0a8
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Use slots of *backend* instead of *sc-names*, etc for backend specific
information. ,
parent
995ead1e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler/dump.lisp
+12
-18
12 additions, 18 deletions
compiler/dump.lisp
compiler/gtn.lisp
+4
-4
4 additions, 4 deletions
compiler/gtn.lisp
with
16 additions
and
22 deletions
compiler/dump.lisp
+
12
−
18
View file @
bc3df0a8
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dump.lisp,v 1.2
3
1990/1
0/25 20:48:32
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/dump.lisp,v 1.2
4
1990/1
1/03 03:13:41
wlott Exp $
;;;
;;; This file contains stuff that knows about dumping FASL files.
;;;
...
...
@@ -15,15 +15,10 @@
(
proclaim
'
(
special
compiler-version
))
(
in-package
"VM"
)
(
export
'
(
target-fasl-file-implementation
target-fasl-file-version
fasl-file-implementations
(
export
'
(
fasl-file-implementations
pmax-fasl-file-implementation
sparc-fasl-file-implementation
))
(
in-package
"C"
)
;;;; Different Implementations:
...
...
@@ -34,10 +29,6 @@
(
defconstant
pmax-fasl-file-implementation
1
)
(
defconstant
sparc-fasl-file-implementation
2
)
(
proclaim
'
(
special
vm:target-fasl-file-implementation
))
(
proclaim
'
(
special
vm:target-fasl-file-version
))
;;;; Fasl dumper state:
...
...
@@ -53,7 +44,7 @@
(
namestring
(
fasl-file-stream
s
))))))
;;
;; The stream we dump to.
(
stream
nil
:type
stream
)
(
stream
(
required-argument
)
:type
stream
)
;;
;; Hashtables we use to keep track of dumped constants so that we can get
;; them from the table rather than dumping them again. The EQUAL-TABLE is
...
...
@@ -102,13 +93,13 @@
(
defstruct
circularity
;;
;; Kind of modification to make to create circularity.
(
type
nil
:type
(
member
:rplaca
:rplacd
:svset
:struct-set
))
(
type
(
required-argument
)
:type
(
member
:rplaca
:rplacd
:svset
:struct-set
))
;;
;; Object containing circularity.
object
;;
;; Index in object for circularity.
(
index
nil
:type
unsigned-byte
)
(
index
(
required-argument
)
:type
unsigned-byte
)
;;
;; The object to be stored at Index in Object. This is that the key that we
;; were using when we discovered the circularity.
...
...
@@ -306,7 +297,9 @@
where
(
ext:format-universal-time
nil
(
get-universal-time
))
(
machine-instance
)
compiler-version
(
lisp-implementation-version
)
vm-version
target-fasl-file-version
)
(
lisp-implementation-version
)
(
backend-version
*backend*
)
(
backend-fasl-file-version
*backend*
))
;;
;; Terminate header.
(
dump-byte
255
res
)
...
...
@@ -1029,11 +1022,12 @@
(
dump-fop
'lisp::fop-int-vector
file
)
(
quick-dump-number
len
4
file
)
(
dump-byte
size
file
)
(
cond
((
or
(
eq
target-byte-order
native-byte-order
)
(
cond
((
or
(
eq
(
backend-byte-order
*backend*
)
(
backend-byte-order
*native-backend*
))
(
=
size
8
))
(
system:output-raw-bytes
(
fasl-file-stream
file
)
vec
0
bytes
))
((
>
size
8
)
(
ecase
target
-byte-order
(
ecase
(
backend
-byte-order
*backend*
)
(
:little-endian
(
dotimes
(
i
len
)
(
let
((
int
(
aref
vec
i
)))
...
...
@@ -1056,7 +1050,7 @@
(
dump-byte
byte
file
)
(
setq
shift
,
initial
byte
0
)))
(
unless
(
=
shift
,
initial
)
(
dump-byte
byte
file
)))))
(
ecase
target
-byte-order
(
ecase
(
backend
-byte-order
*backend*
)
(
:little-endian
(
frob
0
incf
(
=
shift
8
)))
(
:big-endian
...
...
This diff is collapsed.
Click to expand it.
compiler/gtn.lisp
+
4
−
4
View file @
bc3df0a8
...
...
@@ -50,7 +50,7 @@
(
dolist
(
var
(
lambda-vars
fun
))
(
when
(
leaf-refs
var
)
(
let*
((
type
(
if
(
lambda-var-indirect
var
)
*
any-primitive-type
*
(
backend-
any-primitive-type
*backend*
)
(
primitive-type
(
leaf-type
var
))))
(
temp
(
make-normal-tn
type
))
(
node
(
lambda-bind
fun
))
...
...
@@ -77,9 +77,9 @@
(
let
((
ptype
(
etypecase
thing
(
lambda-var
(
if
(
lambda-var-indirect
thing
)
*
any-primitive-type
*
(
backend-
any-primitive-type
*backend*
)
(
primitive-type
(
leaf-type
thing
))))
(
nlx-info
*
any-primitive-type
*
))))
(
nlx-info
(
backend-
any-primitive-type
*backend*
)
))))
(
env
(
cons
thing
(
make-normal-tn
ptype
)))))
(
let
((
res
(
make-ir2-environment
...
...
@@ -233,6 +233,6 @@
(
make-ir2-nlx-info
:home
(
when
(
member
(
cleanup-kind
(
nlx-info-cleanup
nlx
))
'
(
:block
:tagbody
))
(
make-normal-tn
*
any-primitive-type
*
))
(
make-normal-tn
(
backend-
any-primitive-type
*backend*
)
))
:save-sp
(
make-nlx-sp-tn
env
)))))
(
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