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
c6210521
Commit
c6210521
authored
35 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Changed ILLEGAL-MOVE to signal an error.
parent
00a6ee98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/old-rt/move.lisp
+16
-8
16 additions, 8 deletions
compiler/old-rt/move.lisp
with
16 additions
and
8 deletions
compiler/old-rt/move.lisp
+
16
−
8
View file @
c6210521
...
...
@@ -102,15 +102,23 @@
;;;; ILLEGAL-MOVE
;;; This VOP exists just to begin the lifetime of a TN that couldn't be written
;;; legally due to a type error. An error is signalled before this VOP is
;;; so we don't need to do anything (not that there would be anything sensible
;;; to do anyway.)
;;; This VOP is emitted when we attempt to do a move between incompatible
;;; primitive types. We signal an error, and ignore the result (which is
;;; specified only to terminate its lifetime.)
;;;
(
define-vop
(
illegal-move
)
(
:results
(
y
))
(
:ignore
y
)
(
:generator
666
))
(
define-vop
(
illegal-move
three-arg-miscop
)
(
:args
(
x
:scs
(
any-reg
descriptor-reg
)
:target
a1
)
(
y-type
:scs
(
any-reg
descriptor-reg
)
:target
a2
))
(
:variant-vars
)
(
:ignore
r
a3
nl0
nl1
misc-pc
)
(
:generator
666
(
loadi
a0
clc::error-object-not-type
)
(
unless
(
location=
x
a1
)
(
inst
lr
a1
x
))
(
unless
(
location=
y-type
a2
)
(
inst
lr
a2
y-type
))
(
inst
miscop
'clc::error2
)
(
note-this-location
vop
:internal-error
)))
;;;; Operand loading and saving:
...
...
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