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
4e0ab25b
Commit
4e0ab25b
authored
35 years ago
by
ch
Browse files
Options
Downloads
Patches
Plain Diff
Removed all type ranges by enumerating them because the type checking
macros no longer support type ranges.
parent
dbde187c
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/mips/type-vops.lisp
+34
-17
34 additions, 17 deletions
compiler/mips/type-vops.lisp
with
34 additions
and
17 deletions
compiler/mips/type-vops.lisp
+
34
−
17
View file @
4e0ab25b
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/type-vops.lisp,v 1.
6
1990/03/
15 19:38:46 wlott
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/type-vops.lisp,v 1.
7
1990/03/
22 00:21:20 ch
Exp $
;;;
;;;
;;; This file contains the VM definition of type testing and checking VOPs
;;; This file contains the VM definition of type testing and checking VOPs
;;; for the RT.
;;; for the RT.
...
@@ -18,10 +18,11 @@
...
@@ -18,10 +18,11 @@
;;;
;;;
(
in-package
"C"
)
(
in-package
"C"
)
;;; ### These belong
s
in compiler/fndb.lisp
;;; ### These belong in compiler/fndb.lisp
;;;
;;;
(
defknown
realp
(
t
)
boolean
(
movable
foldable
flushable
))
(
defknown
realp
(
t
)
boolean
(
movable
foldable
flushable
))
(
defknown
system-area-pointer-p
(
t
)
boolean
(
movable
foldable
flushable
))
(
defknown
system-area-pointer-p
(
t
)
boolean
(
movable
foldable
flushable
))
(
defknown
simple-array-p
(
t
)
boolean
(
movable
foldable
flushable
))
;;;; Simple type checking and testing:
;;;; Simple type checking and testing:
...
@@ -173,43 +174,59 @@
...
@@ -173,43 +174,59 @@
(
move
res
obj
)))))))))
(
move
res
obj
)))))))))
(
frob
array-header-p
nil
nil
(
frob
array-header-p
nil
nil
vm:simple-array-type
(
vm:complex-string-type
vm:complex-array-type
))
vm:simple-array-type
vm:complex-string-type
vm:complex-bit-vector-type
vm:complex-vector-type
vm:complex-array-type
)
(
frob
nil
check-function-or-symbol
di:object-not-function-or-symbol-error
(
frob
nil
check-function-or-symbol
di:object-not-function-or-symbol-error
vm:function-pointer-type
vm:symbol-header-type
)
vm:function-pointer-type
vm:symbol-header-type
)
(
frob
vectorp
check-vector
di:object-not-vector-error
(
vm:simple-string-type
vm:simple-array-double-float-type
))
(
frob
stringp
check-string
di:object-not-string-error
(
frob
stringp
check-string
di:object-not-string-error
vm:simple-string-type
vm:complex-string-type
)
vm:simple-string-type
vm:complex-string-type
)
(
frob
bit-vector-p
check-bit-vector
di:object-not-bit-vector-error
(
frob
bit-vector-p
check-bit-vector
di:object-not-bit-vector-error
vm:simple-bit-vector-type
vm:complex-bit-vector-type
)
vm:simple-bit-vector-type
vm:complex-bit-vector-type
)
(
frob
arrayp
check-array
di:object-not-array-error
(
frob
vectorp
check-vector
di:object-not-vector-error
(
vm:simple-array-type
vm:complex-array-type
))
vm:simple-string-type
vm:simple-bit-vector-type
vm:simple-vector-type
vm:simple-array-unsigned-byte-2-type
vm:simple-array-unsigned-byte-4-type
vm:simple-array-unsigned-byte-8-type
vm:simple-array-unsigned-byte-16-type
vm:simple-array-unsigned-byte-32-type
vm:simple-array-single-float-type
vm:simple-array-double-float-type
vm:complex-string-type
vm:complex-bit-vector-type
vm:complex-vector-type
)
(
frob
simple-array-p
check-simple-array
di:object-not-simple-array-error
vm:simple-array-type
vm:simple-string-type
vm:simple-bit-vector-type
vm:simple-vector-type
vm:simple-array-unsigned-byte-2-type
vm:simple-array-unsigned-byte-4-type
vm:simple-array-unsigned-byte-8-type
vm:simple-array-unsigned-byte-16-type
vm:simple-array-unsigned-byte-32-type
vm:simple-array-single-float-type
vm:simple-array-double-float-type
)
(
frob
arrayp
check-array
di:object-not-array-error
vm:simple-array-type
vm:simple-string-type
vm:simple-bit-vector-type
vm:simple-vector-type
vm:simple-array-unsigned-byte-2-type
vm:simple-array-unsigned-byte-4-type
vm:simple-array-unsigned-byte-8-type
vm:simple-array-unsigned-byte-16-type
vm:simple-array-unsigned-byte-32-type
vm:simple-array-single-float-type
vm:simple-array-double-float-type
vm:complex-string-type
vm:complex-bit-vector-type
vm:complex-vector-type
vm:complex-array-type
)
(
frob
numberp
check-number
di:object-not-number-error
(
frob
numberp
check-number
di:object-not-number-error
vm:even-fixnum-type
vm:odd-fixnum-type
vm:even-fixnum-type
vm:odd-fixnum-type
vm:bignum-type
vm:ratio-type
(
vm:
bignum
-type
vm:complex-type
)
)
vm:
single-float-type
vm:double-float
-type
vm:complex-type
)
(
frob
rationalp
check-rational
di:object-not-rational-error
(
frob
rationalp
check-rational
di:object-not-rational-error
vm:even-fixnum-type
vm:odd-fixnum-type
vm:even-fixnum-type
vm:odd-fixnum-type
vm:ratio-type
vm:bignum-type
)
vm:ratio-type
vm:bignum-type
)
(
frob
floatp
check-float
di:object-not-float-error
(
frob
floatp
check-float
di:object-not-float-error
vm:single-float-type
vm:double-float-type
)
vm:single-float-type
vm:double-float-type
)
(
frob
realp
check-real
di:object-not-real-error
(
frob
realp
check-real
di:object-not-real-error
vm:even-fixnum-type
vm:odd-fixnum-type
vm:even-fixnum-type
vm:odd-fixnum-type
vm:ratio-type
vm:bignum-type
vm:ratio-type
vm:bignum-type
vm:single-float-type
vm:double-float-type
)
vm:single-float-type
vm:double-float-type
)
;; ### May want to make this more tense.
;; ### May want to make this more tense.
(
frob
integerp
check-integer
di:object-not-integer-error
(
frob
integerp
check-integer
di:object-not-integer-error
vm:even-fixnum-type
vm:odd-fixnum-type
vm:even-fixnum-type
vm:odd-fixnum-type
vm:bignum-type
))
vm:bignum-type
))
;;;; List/symbol types:
;;;; List/symbol types:
...
...
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