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
c0218b24
Commit
c0218b24
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Wrote make-array-header.
parent
ec978607
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/array.lisp
+32
-1
32 additions, 1 deletion
compiler/mips/array.lisp
with
32 additions
and
1 deletion
compiler/mips/array.lisp
+
32
−
1
View file @
c0218b24
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/array.lisp,v 1.
5
1990/03/2
1
2
3:22:04
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/array.lisp,v 1.
6
1990/03/2
9
2
1:34:15
wlott Exp $
;;;
;;; This file contains the MIPS definitions for array operations.
;;;
...
...
@@ -15,6 +15,26 @@
;;;
(
in-package
"C"
)
;;;; Allocator for the array header.
(
define-vop
(
make-array-header
)
(
:args
(
type
:scs
(
any-reg
descriptor-reg
))
(
rank
:scs
(
any-reg
descriptor-reg
)))
(
:temporary
(
:scs
(
descriptor-reg
)
:to
(
:result
0
)
:target
result
)
header
)
(
:temporary
(
:scs
(
non-descriptor-reg
))
ndescr
)
(
:results
(
result
:scs
(
descriptor-reg
)))
(
:generator
0
(
pseudo-atomic
(
ndescr
)
(
inst
addiu
header
alloc-tn
vm:other-pointer-type
)
(
inst
addiu
alloc-tn
alloc-tn
(
*
vm:array-dimensions-offset
vm:word-bytes
))
(
inst
addu
alloc-tn
alloc-tn
rank
)
(
inst
sll
ndescr
rank
vm:type-bits
)
(
inst
or
ndescr
ndescr
type
)
(
inst
srl
ndescr
ndescr
2
)
(
storew
ndescr
header
0
vm:other-pointer-type
))
(
move
result
header
)))
;;;; Additional accessors and setters for the array header.
...
...
@@ -145,6 +165,17 @@
|#
(
define-vop
(
raw-bits
halfword-index-ref
)
(
:translate
%raw-bits
)
(
:variant
1
vm:other-pointer-type
))
(
define-vop
(
set-raw-bits
halfword-index-set
)
(
:translate
(
setf
%raw-bits
))
(
:variant
1
vm:other-pointer-type
))
;;;; Misc. Array VOPs.
...
...
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