Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cmucl
cmucl
Commits
3465a2ae
Commit
3465a2ae
authored
Oct 3, 2013
by
Raymond Toy
Browse files
Options
Downloads
Plain Diff
Merge branch 'arm-rtoy-change-make-ea-add-values' into arm-rtoy-add-more
parents
c4dce9ec
b0e6efc8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/compiler/arm/values.lisp
+77
-0
77 additions, 0 deletions
src/compiler/arm/values.lisp
with
77 additions
and
0 deletions
src/compiler/arm/values.lisp
0 → 100644
+
77
−
0
View file @
3465a2ae
;;; -*- Package: ARM -*-
;;;
;;; **********************************************************************
;;; This code was written as part of the CMU Common Lisp project at
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: src/compiler/arm/values.lisp $"
)
;;;
;;; **********************************************************************
;;;
;;; This file contains the implementation of unknown-values VOPs.
;;;
;;; Written by Rob MacLachlan
;;;
;;;
(
in-package
"ARM"
)
(
define-vop
(
reset-stack-pointer
)
(
:args
(
ptr
:scs
(
any-reg
)))
(
:generator
1
(
move
csp-tn
ptr
)))
;;; Push some values onto the stack, returning the start and number of values
;;; pushed as results. It is assumed that the Vals are wired to the standard
;;; argument locations. Nvals is the number of values to push.
;;;
;;; The generator cost is pseudo-random. We could get it right by defining a
;;; bogus SC that reflects the costs of the memory-to-memory moves for each
;;; operand, but this seems unworthwhile.
;;;
(
define-vop
(
push-values
)
(
:args
(
vals
:more
t
))
(
:results
(
start
:scs
(
any-reg
)
:from
:load
)
(
count
:scs
(
any-reg
)))
(
:info
nvals
)
(
:temporary
(
:scs
(
descriptor-reg
))
temp
)
(
:generator
20
(
not-implemented
)))
;;; Push a list of values on the stack, returning Start and Count as used in
;;; unknown values continuations.
;;;
(
define-vop
(
values-list
)
(
:args
(
arg
:scs
(
descriptor-reg
)
:target
list
))
(
:arg-types
list
)
(
:policy
:fast-safe
)
(
:results
(
start
:scs
(
any-reg
))
(
count
:scs
(
any-reg
)))
(
:temporary
(
:scs
(
descriptor-reg
)
:type
list
:from
(
:argument
0
))
list
)
(
:temporary
(
:scs
(
descriptor-reg
))
temp
)
(
:temporary
(
:scs
(
non-descriptor-reg
))
ndescr
)
(
:vop-var
vop
)
(
:save-p
:compute-only
)
(
:generator
0
(
not-implemented
)))
;;; Copy the more arg block to the top of the stack so we can use them
;;; as function arguments.
;;;
(
define-vop
(
%more-arg-values
)
(
:args
(
context
:scs
(
descriptor-reg
any-reg
)
:target
src
)
(
skip
:scs
(
any-reg
immediate
))
(
num
:scs
(
any-reg
)
:target
count
))
(
:arg-types
*
positive-fixnum
positive-fixnum
)
(
:temporary
(
:sc
any-reg
:from
(
:argument
0
))
src
)
(
:temporary
(
:sc
any-reg
:from
(
:argument
2
))
dst
)
(
:temporary
(
:sc
descriptor-reg
:from
(
:argument
1
))
temp
)
(
:temporary
(
:sc
any-reg
)
i
)
(
:results
(
start
:scs
(
any-reg
))
(
count
:scs
(
any-reg
)))
(
:generator
20
(
not-implemented
)))
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
sign in
to comment