removed source annotation from primitive procedures (which were not
supposed to be there in the first place)
This commit is contained in:
parent
370454e4fc
commit
39c8e8e23f
|
@ -21,7 +21,8 @@
|
||||||
current-core-eval
|
current-core-eval
|
||||||
compile-core-expr expand/optimize optimizer-output
|
compile-core-expr expand/optimize optimizer-output
|
||||||
cp0-effort-limit cp0-size-limit optimize-level
|
cp0-effort-limit cp0-size-limit optimize-level
|
||||||
perform-tag-analysis tag-analysis-output)
|
perform-tag-analysis tag-analysis-output
|
||||||
|
strip-source-info)
|
||||||
(import
|
(import
|
||||||
(rnrs hashtables)
|
(rnrs hashtables)
|
||||||
(ikarus system $fx)
|
(ikarus system $fx)
|
||||||
|
@ -42,6 +43,7 @@
|
||||||
(ikarus.intel-assembler))
|
(ikarus.intel-assembler))
|
||||||
|
|
||||||
|
|
||||||
|
(define strip-source-info (make-parameter #f))
|
||||||
|
|
||||||
(define-syntax struct-case
|
(define-syntax struct-case
|
||||||
(lambda (x)
|
(lambda (x)
|
||||||
|
@ -307,6 +309,18 @@
|
||||||
(list? fml*))
|
(list? fml*))
|
||||||
body))))))
|
body))))))
|
||||||
cls*))
|
cls*))
|
||||||
|
(define (E-app rator arg* ctxt)
|
||||||
|
(let ([names (get-fmls rator arg*)])
|
||||||
|
(make-funcall
|
||||||
|
(E rator (list ctxt))
|
||||||
|
(let f ([arg* arg*] [names names])
|
||||||
|
(cond
|
||||||
|
[(pair? names)
|
||||||
|
(cons
|
||||||
|
(E (car arg*) (car names))
|
||||||
|
(f (cdr arg*) (cdr names)))]
|
||||||
|
[else
|
||||||
|
(map (lambda (x) (E x #f)) arg*)])))))
|
||||||
(define (E x ctxt)
|
(define (E x ctxt)
|
||||||
(cond
|
(cond
|
||||||
[(pair? x)
|
[(pair? x)
|
||||||
|
@ -375,9 +389,9 @@
|
||||||
(make-clambda (gensym) cls* #f #f
|
(make-clambda (gensym) cls* #f #f
|
||||||
(cons
|
(cons
|
||||||
(and (symbol? ctxt) ctxt)
|
(and (symbol? ctxt) ctxt)
|
||||||
(if (annotation? ae)
|
(and (not (strip-source-info))
|
||||||
(annotation-source ae)
|
(annotation? ae)
|
||||||
#f)))))]
|
(annotation-source ae))))))]
|
||||||
[(lambda)
|
[(lambda)
|
||||||
(E `(case-lambda ,(cdr x)) ctxt)]
|
(E `(case-lambda ,(cdr x)) ctxt)]
|
||||||
[(foreign-call)
|
[(foreign-call)
|
||||||
|
@ -425,18 +439,7 @@
|
||||||
(make-funcall
|
(make-funcall
|
||||||
(make-primref 'make-parameter)
|
(make-primref 'make-parameter)
|
||||||
(map (lambda (x) (E x #f)) (cdr x)))])]
|
(map (lambda (x) (E x #f)) (cdr x)))])]
|
||||||
[else
|
[else (E-app (car x) (cdr x) ctxt)])]
|
||||||
(let ([names (get-fmls (car x) (cdr x))])
|
|
||||||
(make-funcall
|
|
||||||
(E (car x) (list ctxt))
|
|
||||||
(let f ([arg* (cdr x)] [names names])
|
|
||||||
(cond
|
|
||||||
[(pair? names)
|
|
||||||
(cons
|
|
||||||
(E (car arg*) (car names))
|
|
||||||
(f (cdr arg*) (cdr names)))]
|
|
||||||
[else
|
|
||||||
(map (lambda (x) (E x #f)) arg*)]))))])]
|
|
||||||
[(symbol? x)
|
[(symbol? x)
|
||||||
(cond
|
(cond
|
||||||
[(lexical x) =>
|
[(lexical x) =>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1773
|
1774
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
(perform-tag-analysis #t)
|
(perform-tag-analysis #t)
|
||||||
(pretty-width 160)
|
(pretty-width 160)
|
||||||
((pretty-format 'fix) ((pretty-format 'letrec)))
|
((pretty-format 'fix) ((pretty-format 'letrec)))
|
||||||
|
(strip-source-info #t)
|
||||||
|
|
||||||
(define scheme-library-files
|
(define scheme-library-files
|
||||||
;;; Listed in the order in which they're loaded.
|
;;; Listed in the order in which they're loaded.
|
||||||
|
@ -404,6 +405,7 @@
|
||||||
[struct-field-accessor i]
|
[struct-field-accessor i]
|
||||||
[struct-length i]
|
[struct-length i]
|
||||||
[struct-ref i]
|
[struct-ref i]
|
||||||
|
[struct-set! i]
|
||||||
[struct-printer i]
|
[struct-printer i]
|
||||||
[struct-name i]
|
[struct-name i]
|
||||||
[struct-type-descriptor i]
|
[struct-type-descriptor i]
|
||||||
|
|
Loading…
Reference in New Issue