1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00
Commit graph

23 commits

Author SHA1 Message Date
Christine Lemmer-Webber
a6ba7afed4
Remove lower-cps call in compile-js.
Since ijp's work, lower-cps is run before it reaches this stage.

* module/language/cps/compile-js.scm (lower-cps): Remove import.
(compile-js): Remove call to lower-cps.
2021-10-11 20:59:39 -04:00
Christopher Lemmer Webber
b03b359b5b
Switch use of $closure to $const-fun
Well, I think this is one of the necessary steps anyway.

* module/language/cps/compile-js.scm (compile-exp*): Switch use
of $closure to use the newer name, $const-fun.
2021-05-11 11:08:51 -04:00
Christopher Lemmer Webber
7e2f526e4d
Fix import of lower-cps in compile-js.scm
* module/language/cps/compile-js.scm (lower-cps): Fix import of lower-cps.
2021-05-11 10:17:57 -04:00
Ian Price
05c57a6a66 Update Copyright Headers
* module/Makefile.am:
* module/language/cps/compile-js.scm:
* module/language/cps/spec.scm:
* module/language/javascript.scm:
* module/language/javascript/spec.scm:
* module/language/js-il.scm:
* module/language/js-il/compile-javascript.scm:
* module/language/js-il/inlining.scm:
* module/language/js-il/runtime.js: Update copyright headers
2017-08-28 14:08:31 +01:00
Ian Price
c2589b5c48 Rebuild nested scopes for js continuations
* module/language/cps/compile-js.scm (compile-cont, compile-clause):
  Rebuild nested scopes for $kargs, using dominator information.
  (compile-fun, compile-clauses): Pass down dominator information.
2017-06-20 19:05:59 +01:00
Ian Price
8777c20e94 Handle multiple conts in a function body
* module/language/cps/compile-js.scm (compile-clause, compile-clauses):
  Extract all conts in the function body, and bind in clauses.
  (extract-and-compile-conts): New Procedure
2017-06-15 20:21:47 +01:00
Ian Price
0e4fb0920f compile-js uses the new cps representation
* module/language/cps/compile-js.scm: Rewrite to use cps
2017-06-14 23:07:40 +01:00
Ian Price
23f829b175 Fix build of (language cps compile-js)
* module/language/cps/compile-js.scm (compile-js): Use lower-cps
  from (language cps compile-bytecode) rather than optimize, which is no
  longer there.
2017-06-14 21:27:05 +01:00
Ian Price
a680a4cb9d Change local type representation and remove var type 2015-06-22 16:18:18 +01:00
Ian Price
e9f37e6a31 Change function type representation 2015-06-22 16:18:12 +01:00
Ian Price
a7b2dfa581 Change program type representation 2015-06-22 16:08:20 +01:00
Ian Price
2e10f55426 Different types for Continuation and Variable identifiers 2015-06-22 16:08:02 +01:00
Ian Price
5827ad4f03 Compile cps $prompt form to javascript 2015-06-18 04:14:43 +01:00
Ian Price
e84f839463 Implement keyword argument parsing 2015-06-18 04:14:43 +01:00
Ian Price
941f8fac01 Implement Optional arguments 2015-06-18 04:14:43 +01:00
Ian Price
44e04eae0a Handle case-lambda via a jump table 2015-06-18 04:14:42 +01:00
Ian Price
86fabef4ca Compile rest args 2015-06-18 04:14:42 +01:00
Ian Price
a3ddf537dc get rid of unused match case 2015-06-18 04:14:42 +01:00
Ian Price
d1a663baec Get rid of comments and dead branches 2015-06-18 04:14:42 +01:00
Ian Price
54ce470cf8 separate js-il functions into actual functions and those for continuations 2015-06-18 04:14:42 +01:00
Ian Price
b70b39e478 Remove jscall type 2015-06-18 04:14:41 +01:00
Ian Price
d57dc85fa8 Replace values object with values passed as continuation arguments 2015-06-18 04:14:41 +01:00
Ian Price
ce1cc2706c Temp commit 2015-06-18 04:14:41 +01:00