Skip to content

Commit 1cbedc9

Browse files
Bikeyitzchak
authored andcommitted
Update for CST:RECONSTRUCT API change
1 parent cece56d commit 1cbedc9

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

repos.sexp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
(:name :cleavir
8989
:repository "https://github.com/s-expressionists/Cleavir.git"
9090
:directory "src/lisp/kernel/contrib/Cleavir/"
91-
:commit "a73d313735447c63b4b11b6f8984f9b1e3e74ec9")
91+
:commit "cacdf4cca14647a258321effb3500ec4563fc570")
9292
(:name :closer-mop
9393
:repository "https://github.com/pcostanza/closer-mop.git"
9494
:directory "src/lisp/kernel/contrib/closer-mop/"

src/lisp/kernel/cleavir/convert-special.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
((,head (eql ',name)) ,cst ,environment (,system clasp-cleavir:clasp))
1717
(cst-to-ast:convert
1818
(destructuring-bind ,lambda-list (cst:raw (cst:rest ,cst))
19-
(cst:reconstruct (progn ,@body) ,cst ,system))
19+
(cst:reconstruct ,system (progn ,@body) ,cst))
2020
,environment ,system))))
2121

2222
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

src/lisp/kernel/cleavir/inline-prep.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
;; FIXME: This will mess up inline definitions within macrolets etc.
111111
(env nil)
112112
(cst (if *compiling-cst*
113-
(cst:reconstruct form *compiling-cst* *clasp-system*)
113+
(cst:reconstruct *clasp-system* form *compiling-cst*)
114114
(cst:cst-from-expression form))))
115115
(fix-inline-ast (cst->ast cst env))))
116116

src/lisp/kernel/cleavir/satiation.lisp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@
297297
(clos:satiate #'cst:nthrest '(fixnum cst:cons-cst))
298298
;; SP NIL T T
299299
(clos:satiate #'cst:reconstruct
300-
'(cons cst:atom-cst clasp-64bit)
301-
'(cons cst:cons-cst clasp-64bit)
302-
'(cons null clasp-64bit)
303-
'(cons cons clasp-64bit)))
300+
'(clasp-64bit cons cst:atom-cst)
301+
'(clasp-64bit cons cst:cons-cst)
302+
'(clasp-64bit cons null)
303+
'(clasp-64bit cons cons)))
304304
305305
#+cst
306306
(eval-when (:load-toplevel)

src/lisp/kernel/cleavir/toplevel.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
(multiple-value-bind (expansion expandedp)
121121
(macroexpand (cst:raw cst) env)
122122
(let ((cst (if expandedp
123-
(cst:reconstruct expansion cst *cst-client*)
123+
(cst:reconstruct *cst-client* expansion cst)
124124
cst)))
125125
(etypecase cst
126126
(cst:atom-cst

src/lisp/kernel/cleavir/translate.lisp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2072,14 +2072,15 @@
20722072
(origin (origin-source cst)))
20732073
(invoke-restart 'cst-to-ast:substitute-cst
20742074
(cst:reconstruct
2075+
clasp-cleavir:*clasp-system*
20752076
`(error 'cmp:compiled-program-error
20762077
:form ,(with-standard-io-syntax
20772078
(write-to-string form
20782079
:escape t :pretty t
20792080
:circle t :array nil))
20802081
:origin ',(origin-spi origin)
20812082
:condition ,(princ-to-string condition))
2082-
cst clasp-cleavir:*clasp-system* :default-source origin))))
2083+
cst :default-source origin))))
20832084

20842085
(defun cst->ast (cst &optional (env *clasp-env*))
20852086
"Compile a cst into an AST and return it.

0 commit comments

Comments
 (0)