Repository activity
40458 results across all weeks
Compiler: use a circular buffer as the worklist of the dataflow solvers
The imperative dataflow solvers (Dgraph) first accumulated all the nodes of the graph in a list, and then copied this list into a Queue.t. For large programs, both ended up being promoted to the major heap, each time a solver is run (flow analysis, phi simplification, global flow analysis, partial CPS analysis, global dead code elimination).
hhugoEffect fixes
Jérôme Vouillon (@vouillon)Effect handlers: improvements
no need to put mutually recursive functions in CPS with Wasm, which supports tail calls;
Jérôme Vouillon (@vouillon)Experiment with some static evalution
Jérôme Vouillon (@vouillon)Extract loops from toplevel function into helper functions
Extract outermost loops of the entry function into helper closures, so engines tier up the small helpers instead of the giant initialization code. The pass benefits both JavaScript and WebAssembly output.
Jérôme Vouillon (@vouillon)Lib: Form skips button inputs
Form.form_elements and Form.get_form_contents serialize the fields of a form, for instance to send it through XHR (Eliom does). An with a name fell into the default case of get_input_val and was sent as name=value. A native submission never sends it:
Vincent Balat (@balat)More precise function type
Casting the environment to its exact type should be slightly faster since we avoid the test for i31.
Jérôme Vouillon (@vouillon)No longer call wasm-opt with --opt 1
We skip calling wasm-opt with --opt 1. Expected benefits:
Jérôme Vouillon (@vouillon)Optimize exceptions
Jérôme Vouillon (@vouillon)OxCaml updates
Jérôme Vouillon (@vouillon)Prepare for Oxcaml 5.4
Jérôme Vouillon (@vouillon)Runtime: caml_alloc_dummy_mixed takes two arguments
The OxCaml compiler calls it with the block size and the scannable prefix size, as the Wasm runtime expects. The JavaScript backend declared it with one argument, so compiling a recursive definition of a mixed record failed with "Invalid arity for primitive" (tests-oxcaml/misc).
Jérôme Vouillon (@vouillon)Runtime: fix gating of float32 unsafe get/set primitives
These primitives were added with the obsolete //OxCaml marker, which is now ignored, so they were linked without OxCaml and required missing primitives (compilation failure with OCaml 5.2). Gate them on //If: oxcaml, and drop their spurious < 5.3 version bound.
Jérôme Vouillon (@vouillon)Runtime: fix two nat bugs with 32-bit digits
compare_digits_nat compared digits as signed integers, so a digit with its high bit set compared lower than a small one. Digits are unsigned, as in the C implementation.
Jérôme Vouillon (@vouillon)Runtime: specialize direct partial applications in double-translation mode
Avoid an extra caml_call_gen_direct frame for one- and two-argument partial applications in double-translation mode.
Jérôme Vouillon (@vouillon)Specialize exact calls before CPS conversion
Run exact-call specialization for CPS and double-translation backends, then recompute global flow information for the rewritten program.
Jérôme Vouillon (@vouillon)Tests clean-up
Jérôme Vouillon (@vouillon)Unboxing of function and block parameters
Jérôme Vouillon (@vouillon)Use Wax for runtime files
Wax 0.2.0 is on opam. I think it is mature enough to be used by Js_of_ocaml.
Jérôme Vouillon (@vouillon)Use more precise Wasm types
Jérôme Vouillon (@vouillon)