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
624195d3
Commit
624195d3
authored
20 years ago
by
cwang
Browse files
Options
Downloads
Patches
Plain Diff
Remove an unused VOP
parent
ba433e58
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/amd64/alloc.lisp
+1
-30
1 addition, 30 deletions
compiler/amd64/alloc.lisp
with
1 addition
and
30 deletions
compiler/amd64/alloc.lisp
+
1
−
30
View file @
624195d3
...
@@ -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/amd64/alloc.lisp,v 1.
1
2004/0
5/24 22:34:59
cwang Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/amd64/alloc.lisp,v 1.
2
2004/0
6/10 01:37:20
cwang Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -260,32 +260,3 @@
...
@@ -260,32 +260,3 @@
(
allocation
result
bytes
temp
node
)
(
allocation
result
bytes
temp
node
)
(
inst
lea
result
(
make-ea
:byte
:base
result
:disp
lowtag
))
(
inst
lea
result
(
make-ea
:byte
:base
result
:disp
lowtag
))
(
storew
header
result
0
lowtag
))))
(
storew
header
result
0
lowtag
))))
(
define-vop
(
make-symbol
)
(
:policy
:fast-safe
)
(
:translate
make-symbol
)
(
:args
(
name
:scs
(
descriptor-reg
)
:to
:eval
))
(
:temporary
(
:sc
unsigned-reg
)
temp
)
; this cannot be the same register as name
(
:temporary
(
:sc
unsigned-reg
:from
:eval
)
state-addr
)
(
:results
(
result
:scs
(
descriptor-reg
)
:from
:argument
))
(
:node-var
node
)
(
:generator
37
(
with-fixed-allocation
(
result
symbol-header-type
symbol-size
temp
node
)
(
storew
name
result
symbol-name-slot
other-pointer-type
)
(
storew
unbound-marker-type
result
symbol-value-slot
other-pointer-type
)
;; Setup a random hash value for the symbol. Perhaps the object
;; address could be used for even faster and smaller code!
(
load-foreign-data-symbol2
state-addr
"fast_random_state"
temp
)
(
inst
imul
temp
(
make-ea
:qword
:base
state-addr
)
1103515245
)
(
inst
add
temp
12345
)
(
inst
mov
(
make-ea
:qword
:base
state-addr
)
temp
)
;; Want a positive fixnum for the hash value, discard the LS bits.
(
inst
shr
temp
1
)
(
inst
and
temp
#xfffffffc
)
(
storew
temp
result
symbol-hash-slot
other-pointer-type
)
(
storew
nil-value
result
symbol-plist-slot
other-pointer-type
)
(
storew
nil-value
result
symbol-package-slot
other-pointer-type
))))
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