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
5649786a
Commit
5649786a
authored
21 years ago
by
gerd
Browse files
Options
Downloads
Patches
Plain Diff
* src/pcl/low.lisp (compile-lambda): Add &key name and inline.
parent
18bf46d8
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/low.lisp
+20
-6
20 additions, 6 deletions
pcl/low.lisp
with
20 additions
and
6 deletions
pcl/low.lisp
+
20
−
6
View file @
5649786a
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
;;;
;;;
(
file-comment
(
file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/pcl/low.lisp,v 1.3
1
2003/05/2
5
1
4:33:49
gerd Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/pcl/low.lisp,v 1.3
2
2003/05/2
6
1
6:03:08
gerd Exp $"
)
;;;
;;;
;;; This file contains optimized low-level constructs for PCL.
;;; This file contains optimized low-level constructs for PCL.
...
@@ -149,10 +149,25 @@
...
@@ -149,10 +149,25 @@
the compiler as completely as possible. Currently this means that
the compiler as completely as possible. Currently this means that
`*compile-print*' will be bound to nil during compilation."
)
`*compile-print*' will be bound to nil during compilation."
)
(
defun
compile-lambda
(
lambda-form
)
;;;
(
when
*compile-lambda-break-p*
(
break
))
;;; Compile LAMBDA and return the compiled function. If NAME is
(
let
((
*compile-print*
(
if
*compile-lambda-silent-p*
nil
*compile-print*
)))
;;; specified, set NAME's function definition to the result. If
(
compile
nil
lambda-form
)))
;;; INLINE is specified, arrange for calls to NAME to be inlined. If
;;; INLINE is :INLINE, arrange to always inline. If INLINE is
;;; :MAYBE-INLINE, let it be inlined only if explicitly requested at
;;; call sites with (DECLARE (INLINE NAME)).
;;;
(
defun
compile-lambda
(
lambda
&key
name
inline
)
(
declare
(
type
(
member
nil
:inline
:maybe-inline
)
inline
)
(
type
(
or
null
symbol
cons
)
name
))
(
when
*compile-lambda-break-p*
(
break
))
(
let*
((
*compile-print*
(
unless
*compile-lambda-silent-p*
*compile-print*
))
(
fn
(
compile
name
lambda
)))
(
when
inline
(
setf
(
info
function
inlinep
name
)
inline
(
info
function
inline-expansion
name
)
lambda
))
(
if
name
(
fdefinition
name
)
fn
)))
;;;
;;;
;;; This macro will precompile various PCL-generated code fragments,
;;; This macro will precompile various PCL-generated code fragments,
...
@@ -161,7 +176,6 @@ the compiler as completely as possible. Currently this means that
...
@@ -161,7 +176,6 @@ the compiler as completely as possible. Currently this means that
;;; needs to be put in a file, which is compiled via `compile-file',
;;; needs to be put in a file, which is compiled via `compile-file',
;;; and then loaded.
;;; and then loaded.
;;;
;;;
(
defmacro
precompile-random-code-segments
(
&optional
system
)
(
defmacro
precompile-random-code-segments
(
&optional
system
)
`
(
progn
`
(
progn
(
eval-when
(
:compile-toplevel
)
(
eval-when
(
:compile-toplevel
)
...
...
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