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
223c23db
Commit
223c23db
authored
33 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Added check-pack-consistency, which checks that SC restrictions have really
been statisfied.
parent
7967b87b
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/debug.lisp
+27
-2
27 additions, 2 deletions
compiler/debug.lisp
with
27 additions
and
2 deletions
compiler/debug.lisp
+
27
−
2
View file @
223c23db
...
...
@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/debug.lisp,v 1.1
4
1991/0
2
/2
0
1
4:57:04
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/debug.lisp,v 1.1
5
1991/0
8
/2
3
1
6:30:31
ram Exp $"
)
;;;
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/debug.lisp,v 1.1
4
1991/0
2
/2
0
1
4:57:04
ram Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/debug.lisp,v 1.1
5
1991/0
8
/2
3
1
6:30:31
ram Exp $
;;;
;;; Utilities for debugging the compiler. Currently contains only stuff for
;;; checking the consistency of the IR1.
...
...
@@ -917,6 +917,31 @@
(
check-block-conflicts
component
)
(
check-environment-lifetimes
component
))
;;;; Pack consistency checking:
;;; CHECK-PACK-CONSISTENCY -- Interface
;;;
(
defun
check-pack-consistency
(
component
)
(
flet
((
check
(
scs
ops
)
(
do
((
scs
scs
(
cdr
scs
))
(
op
ops
(
tn-ref-across
op
)))
((
null
scs
))
(
let
((
load-tn
(
tn-ref-load-tn
op
)))
(
unless
(
eq
(
svref
(
car
scs
)
(
sc-number
(
tn-sc
(
or
load-tn
(
tn-ref-tn
op
)))))
t
)
(
barf
"Operand restriction not satisfied: ~S."
op
))))))
(
do-ir2-blocks
(
block
component
)
(
do
((
vop
(
ir2-block-last-vop
block
)
(
vop-prev
vop
)))
((
null
vop
))
(
let
((
info
(
vop-info
vop
)))
(
check
(
vop-info-result-load-scs
info
)
(
vop-results
vop
))
(
check
(
vop-info-arg-load-scs
info
)
(
vop-args
vop
))))))
(
undefined-value
))
;;;; Data structure dumping routines:
...
...
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