mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
WIP
This commit is contained in:
parent
45d040c955
commit
44bd8986d7
2 changed files with 72 additions and 5 deletions
|
@ -649,13 +649,29 @@
|
|||
(define (prim-creates-mutable-obj? prim)
|
||||
(member
|
||||
prim
|
||||
'(cons
|
||||
'(
|
||||
;apply ;; ??
|
||||
cons
|
||||
make-vector
|
||||
make-bytevector
|
||||
bytevector bytevector-append bytevector-copy
|
||||
string->utf8 number->string symbol->string list->string utf8->string
|
||||
string-append string substring Cyc-installation-dir read-line
|
||||
bytevector
|
||||
bytevector-append
|
||||
bytevector-copy
|
||||
string->utf8
|
||||
number->string
|
||||
symbol->string
|
||||
list->string
|
||||
utf8->string
|
||||
read-line
|
||||
string-append
|
||||
string
|
||||
substring
|
||||
Cyc-installation-dir
|
||||
Cyc-compilation-environment
|
||||
; Cyc-bytevector-copy
|
||||
; Cyc-utf8->string
|
||||
; Cyc-string->utf8
|
||||
; list->vector
|
||||
)))
|
||||
|
||||
(define (prim-calls-inlinable? prim-calls)
|
||||
|
|
|
@ -814,7 +814,58 @@
|
|||
Cyc-fast-gt
|
||||
Cyc-fast-lt
|
||||
Cyc-fast-gte
|
||||
Cyc-fast-lte)))
|
||||
Cyc-fast-lte
|
||||
; Cyc-global-vars
|
||||
; Cyc-get-cvar
|
||||
; Cyc-cvar? ;; Cyclone-specific
|
||||
; Cyc-opaque?
|
||||
; Cyc-has-cycle?
|
||||
; Cyc-stdout
|
||||
; Cyc-stdin
|
||||
; Cyc-stderr
|
||||
; Cyc-list
|
||||
; %halt
|
||||
; exit
|
||||
; cons
|
||||
; cell-get
|
||||
; cell
|
||||
; Cyc-fast-member
|
||||
; Cyc-fast-assoc
|
||||
; assv
|
||||
; assq
|
||||
; memq
|
||||
; memv
|
||||
; length
|
||||
; car
|
||||
; cdr
|
||||
; caar cadr cdar cddr
|
||||
; caaar caadr cadar caddr cdaar cdadr cddar cdddr
|
||||
; caaaar caaadr caadar caaddr cadaar cadadr
|
||||
; caddar cadddr cdaaar cdaadr cdadar cdaddr cddaar cddadr cdddar cddddr
|
||||
; char->integer
|
||||
; integer->char
|
||||
; string->number
|
||||
; string-append
|
||||
; string-cmp
|
||||
; list->string
|
||||
; string->symbol
|
||||
; symbol->string
|
||||
; number->string
|
||||
; boolean?
|
||||
; char?
|
||||
; eof-object?
|
||||
; null?
|
||||
; number?
|
||||
; real?
|
||||
; integer?
|
||||
; pair?
|
||||
; port?
|
||||
; procedure?
|
||||
; Cyc-macro?
|
||||
; vector?
|
||||
; string?
|
||||
; symbol?
|
||||
)))
|
||||
|
||||
(define (prim:inline-convert-prim-call prim-call)
|
||||
(cond
|
||||
|
|
Loading…
Add table
Reference in a new issue