Commit Graph

6 Commits

Author SHA1 Message Date
mainzelm 5e52592084 Bail out if inliner gets invoked on code that was already processed by
FLAT-ENVIRONMENTS optimizer.
2004-02-09 08:22:54 +00:00
mainzelm 47b9d6028e Use NAME->SYMBOL to generate formal arguments of lambda nodes that get inlined.
Test case is:

,config (define-structure foo (export)
  (open scheme
        finite-types)
  (optimize auto-integrate)
  (begin
   (define-enumerated-type afs-permission :afs-permission
     afs-permission?
     the-afs-permissions
     afs-permission-name
     afs-permission-index
     (read))))

> ,config (define-structure foo (export)
  (open scheme
        finite-types)
  (optimize auto-integrate)
  (begin
   (define-enumerated-type afs-permission :afs-permission
     afs-permission?
     the-afs-permissions
     afs-permission-name
     afs-permission-index
     (read))))
> ,in foo the-afs-permissions
Load structure foo (y/n)? y
[foo
Analyzing...
Calls will be compiled in line: (#{Generated maker 1408} afs-permission-index afs-permission-name)
]
'#(#{Afs-permission #{Generated name 1408}})
> ,inspect

 [0] '#{Afs-permission #{Generated name 1408}}
inspect: 0
'#{Afs-permission #{Generated name 1408}}

 [0: name] '#{Generated name 1408}
 [1: index] '#{Generated index 1408}
2004-02-09 08:21:05 +00:00
mainzelm f5833ad272 Use FORCE-NODE instead of FORCE in case a previous optmizer already
forced the nodes.
2004-02-09 08:15:48 +00:00
mainzelm 3e397f65c5 GC_PROTECT some variables. 2003-05-01 10:21:33 +00:00
marting 37210efdc5 Imported scheme48-0.53 sources as base 1999-09-14 12:45:00 +00:00
marting 606245fc41 *** empty log message *** 1999-09-14 12:45:02 +00:00