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
aead21c0
Commit
aead21c0
authored
22 years ago
by
pmai
Browse files
Options
Downloads
Patches
Plain Diff
Committed two further patches by Gerd Moellmann to remove superfluous
slot-boundp checking code for structure-classes.
parent
25a00dc0
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
pcl/slots-boot.lisp
+7
-10
7 additions, 10 deletions
pcl/slots-boot.lisp
with
7 additions
and
10 deletions
pcl/slots-boot.lisp
+
7
−
10
View file @
aead21c0
...
...
@@ -26,7 +26,7 @@
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/pcl/slots-boot.lisp,v 1.1
3
2002/10/19 1
4:41:44
pmai Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/pcl/slots-boot.lisp,v 1.1
4
2002/10/19 1
5:26:10
pmai Exp $"
)
;;;
(
in-package
:pcl
)
...
...
@@ -164,10 +164,8 @@
(
defun
make-optimized-structure-slot-value-using-class-method-function
(
function
)
(
declare
(
type
function
function
))
(
lambda
(
class
object
slotd
)
(
let
((
value
(
funcall
function
object
)))
(
if
(
eq
value
+slot-unbound+
)
(
slot-unbound
class
object
(
slot-definition-name
slotd
))
value
))))
(
declare
(
ignore
class
slotd
))
(
funcall
function
object
)))
(
defun
make-optimized-structure-setf-slot-value-using-class-method-function
(
function
)
(
declare
(
type
function
function
))
...
...
@@ -175,11 +173,11 @@
(
declare
(
ignore
class
slotd
))
(
funcall
function
nv
object
)))
(
defun
make-optimized-structure-slot-boundp-using-class-method-function
(
function
)
(
defun
make-optimized-structure-slot-boundp-using-class-method-function
()
(
declare
(
type
function
function
))
(
lambda
(
class
object
slotd
)
(
declare
(
ignore
class
slotd
))
(
not
(
eq
(
funcall
function
object
)
+slot-unbound+
))
))
(
declare
(
ignore
class
object
slotd
))
t
))
(
defun
get-optimized-std-slot-value-using-class-method-function
(
class
slotd
name
)
(
if
(
structure-class-p
class
)
...
...
@@ -188,8 +186,7 @@
(
slot-definition-internal-reader-function
slotd
)))
(
writer
(
make-optimized-structure-setf-slot-value-using-class-method-function
(
slot-definition-internal-writer-function
slotd
)))
(
boundp
(
make-optimized-structure-slot-boundp-using-class-method-function
(
slot-definition-internal-writer-function
slotd
))))
(
boundp
(
make-optimized-structure-slot-boundp-using-class-method-function
)))
(
let*
((
fsc-p
(
cond
((
standard-class-p
class
)
nil
)
((
funcallable-standard-class-p
class
)
t
)
(
t
(
error
"~S is not a standard-class"
class
))))
...
...
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