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
d79cf14f
Commit
d79cf14f
authored
31 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Changed the byte-function and byte-closure funcallable-instances to use
&more args instead of a &rest arg.
parent
e4297f35
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
code/byte-interp.lisp
+11
-13
11 additions, 13 deletions
code/byte-interp.lisp
with
11 additions
and
13 deletions
code/byte-interp.lisp
+
11
−
13
View file @
d79cf14f
...
@@ -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/code/byte-interp.lisp,v 1.
29
199
3/11
/0
2
1
6:07:46 ram
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/byte-interp.lisp,v 1.
30
199
4/02
/0
4
1
5:29:19 wlott
Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -367,13 +367,12 @@
...
@@ -367,13 +367,12 @@
(
push
xep
(
code-header-ref
(
byte-function-component
xep
)
(
push
xep
(
code-header-ref
(
byte-function-component
xep
)
vm:code-trace-table-offset-slot
))
vm:code-trace-table-offset-slot
))
(
setf
(
funcallable-instance-function
xep
)
(
setf
(
funcallable-instance-function
xep
)
#'
(
instance-lambda
(
&rest
args
)
#'
(
instance-lambda
(
&more
context
count
)
(
let
((
old-sp
(
current-stack-pointer
))
(
let
((
old-sp
(
current-stack-pointer
)))
(
num-args
(
length
args
)))
(
declare
(
type
stack-pointer
old-sp
))
(
declare
(
type
stack-pointer
old-sp
))
(
do
list
(
arg
args
)
(
do
times
(
i
count
)
(
push-eval-stack
arg
))
(
push-eval-stack
(
%more-arg
context
i
)
))
(
invoke-xep
nil
0
old-sp
0
num-args
xep
))))
(
invoke-xep
nil
0
old-sp
0
count
xep
))))
xep
)
xep
)
(
defun
make-byte-compiled-closure
(
xep
closure-vars
)
(
defun
make-byte-compiled-closure
(
xep
closure-vars
)
...
@@ -381,13 +380,12 @@
...
@@ -381,13 +380,12 @@
(
type
simple-vector
closure-vars
))
(
type
simple-vector
closure-vars
))
(
let
((
res
(
make-byte-closure
xep
closure-vars
)))
(
let
((
res
(
make-byte-closure
xep
closure-vars
)))
(
setf
(
funcallable-instance-function
res
)
(
setf
(
funcallable-instance-function
res
)
#'
(
instance-lambda
(
&rest
args
)
#'
(
instance-lambda
(
&more
context
count
)
(
let
((
old-sp
(
current-stack-pointer
))
(
let
((
old-sp
(
current-stack-pointer
)))
(
num-args
(
length
args
)))
(
declare
(
type
stack-pointer
old-sp
))
(
declare
(
type
stack-pointer
old-sp
))
(
do
list
(
arg
args
)
(
do
times
(
i
count
)
(
push-eval-stack
arg
))
(
push-eval-stack
(
%more-arg
context
i
)
))
(
invoke-xep
nil
0
old-sp
0
num-args
(
invoke-xep
nil
0
old-sp
0
count
(
byte-closure-function
res
)
(
byte-closure-function
res
)
(
byte-closure-data
res
)))))
(
byte-closure-data
res
)))))
res
))
res
))
...
...
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