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
743b3850
Commit
743b3850
authored
32 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a call to continuation-tn to have all three arguments. Added some
generational GC stuff conditionalized under #+gengc.
parent
90ab21c2
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/vm-ir2tran.lisp
+71
-5
71 additions, 5 deletions
compiler/generic/vm-ir2tran.lisp
with
71 additions
and
5 deletions
compiler/generic/vm-ir2tran.lisp
+
71
−
5
View file @
743b3850
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/vm-ir2tran.lisp,v 1.
1
1992/12/1
3
1
5:14:50
wlott Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/vm-ir2tran.lisp,v 1.
2
1992/12/1
5
1
9:33:49
wlott Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -26,16 +26,24 @@
...
@@ -26,16 +26,24 @@
name
offset
lowtag
res
)
name
offset
lowtag
res
)
(
move-continuation-result
node
block
locs
cont
)))
(
move-continuation-result
node
block
locs
cont
)))
#+
gengc
(
defun
needs-remembering
(
cont
)
(
if
(
csubtypep
(
continuation-type
cont
)
(
load-time-value
(
specifier-type
'
(
or
fixnum
character
(
member
t
nil
)))))
nil
t
))
(
defoptimizer
ir2-convert-setter
((
object
value
)
node
block
name
offset
lowtag
)
(
defoptimizer
ir2-convert-setter
((
object
value
)
node
block
name
offset
lowtag
)
(
let
((
value-tn
(
continuation-tn
node
block
value
)))
(
let
((
value-tn
(
continuation-tn
node
block
value
)))
(
vop
set-slot
node
block
(
continuation-tn
node
block
object
)
value-tn
(
vop
set-slot
node
block
(
continuation-tn
node
block
object
)
value-tn
name
offset
lowtag
)
name
offset
lowtag
#+
gengc
(
needs-remembering
value
)
)
(
move-continuation-result
node
block
(
list
value-tn
)
(
node-cont
node
))))
(
move-continuation-result
node
block
(
list
value-tn
)
(
node-cont
node
))))
(
defoptimizer
ir2-convert-setfer
((
value
object
)
node
block
name
offset
lowtag
)
(
defoptimizer
ir2-convert-setfer
((
value
object
)
node
block
name
offset
lowtag
)
(
let
((
value-tn
(
continuation-tn
node
block
value
)))
(
let
((
value-tn
(
continuation-tn
node
block
value
)))
(
vop
set-slot
node
block
(
continuation-tn
node
block
object
)
value-tn
(
vop
set-slot
node
block
(
continuation-tn
node
block
object
)
value-tn
name
offset
lowtag
)
name
offset
lowtag
#+
gengc
(
needs-remembering
value
)
)
(
move-continuation-result
node
block
(
list
value-tn
)
(
node-cont
node
))))
(
move-continuation-result
node
block
(
list
value-tn
)
(
node-cont
node
))))
(
defun
do-inits
(
node
block
name
result
lowtag
inits
args
)
(
defun
do-inits
(
node
block
name
result
lowtag
inits
args
)
...
@@ -58,7 +66,7 @@
...
@@ -58,7 +66,7 @@
tn
))))
tn
))))
(
:null
(
:null
(
emit-constant
nil
)))
(
emit-constant
nil
)))
name
slot
lowtag
))))
name
slot
lowtag
#+
gengc
nil
))))
(
assert
(
null
args
)))
(
assert
(
null
args
)))
(
defoptimizer
ir2-convert-fixed-allocation
(
defoptimizer
ir2-convert-fixed-allocation
...
@@ -84,8 +92,66 @@
...
@@ -84,8 +92,66 @@
(
vop
fixed-alloc
node
block
name
words
(
vop
fixed-alloc
node
block
name
words
(
logior
(
ash
words
vm:type-bits
)
type
)
(
logior
(
ash
words
vm:type-bits
)
type
)
lowtag
result
))
lowtag
result
))
(
vop
var-alloc
node
block
(
continuation-tn
extra
)
name
words
(
vop
var-alloc
node
block
(
continuation-tn
node
block
extra
)
name
words
(
logior
(
ash
words
vm:type-bits
)
type
)
(
logior
(
ash
words
vm:type-bits
)
type
)
lowtag
result
))
lowtag
result
))
(
do-inits
node
block
name
result
lowtag
inits
args
)
(
do-inits
node
block
name
result
lowtag
inits
args
)
(
move-continuation-result
node
block
locs
cont
)))
(
move-continuation-result
node
block
locs
cont
)))
;;;; Replacements for stuff in ir2tran to make gengc work.
#+
gengc
(
defun
ir2-convert-set
(
node
block
)
(
declare
(
type
cset
node
)
(
type
ir2-block
block
))
(
let*
((
cont
(
node-cont
node
))
(
leaf
(
set-var
node
))
(
val
(
continuation-tn
node
block
(
set-value
node
)))
(
locs
(
if
(
continuation-info
cont
)
(
continuation-result-tns
cont
(
list
(
primitive-type
(
leaf-type
leaf
))))
nil
)))
(
etypecase
leaf
(
lambda-var
(
when
(
leaf-refs
leaf
)
(
let
((
tn
(
find-in-environment
leaf
(
node-environment
node
))))
(
if
(
lambda-var-indirect
leaf
)
(
vop
value-cell-set
node
block
tn
val
(
needs-remembering
val
))
(
emit-move
node
block
val
tn
)))))
(
global-var
(
ecase
(
global-var-kind
leaf
)
((
:special
:global
)
(
assert
(
symbolp
(
leaf-name
leaf
)))
(
vop
set
node
block
(
emit-constant
(
leaf-name
leaf
))
val
(
needs-remembering
val
))))))
(
when
locs
(
emit-move
node
block
val
(
first
locs
))
(
move-continuation-result
node
block
locs
cont
)))
(
undefined-value
))
#+
gengc
(
defoptimizer
(
%lexical-exit-breakup
ir2-convert
)
((
info
)
node
block
)
(
vop
value-cell-set
node
block
(
find-in-environment
(
continuation-value
info
)
(
node-environment
node
))
(
emit-constant
0
)
nil
))
#+
gengc
(
defoptimizer
(
%slot-setter
ir2-convert
)
((
value
str
)
node
block
)
(
let
((
val
(
continuation-tn
node
block
value
)))
(
vop
structure-set
node
block
(
continuation-tn
node
block
str
)
val
(
dsd-index
(
slot-accessor-slot
(
ref-leaf
(
continuation-use
(
combination-fun
node
)))))
(
needs-remembering
value
))
(
move-continuation-result
node
block
(
list
val
)
(
node-cont
node
))))
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