Repository activity
40458 results across all weeks
Build ppxlib and js_of_ocaml in the compiler's main dune context
Stacked on #7538 (which is on #7465, rricard's js_of_ocaml distribution work), so this diff only shows this PR. Follows up the discussion on #7425: rather than a staging install and a nested build, ppxlib, js_of_ocaml and their dependencies are built as ordinary libraries in the main context of the compiler build, against the compiler and libraries being bui…
Jacob Van Buren (@jvanburen)Bytecode: Deeply copy "unboxed" product fields for large functional updates
This fixes the same bug as in #7468, #6123, and #5386 but for functional updates of large records (compiling to a Pduprecord).
Zack Eisbach (@zackbach)Change most stdlib/built-in parameterised types to take `any`
Do for the rest of stdlib what #5462 did for option. The only real difficulty is ref, which we access using externals rather than OCaml syntax.
Luke Maurer (@lukemaurer)Check and propagate functor staticity for include functor and F ()
[include functor F] applied a functor without the staticity checks that [F (X)] performs: a dynamic functor (e.g. one loaded via plain -I) could be included where a static one is required, and the included items were given the functor type's declared result mode rather than inheriting the functor's staticity. It was also always compiled as a plain [Lapply], …
Jack Rickard (@Skepfyr)Constant propagation in classic mode
Vincent Laviron (@lthls)Delay template capture computation to slambda eval
Lkindtemplate and Ltemplate no longer carry an explicit environment of captured variables. Instead, slambda works out a template's captures from its free variables when it evaluates the template. It uses layouts recorded in its environment, and the closure is allocated with the function's own mode. Notably getting the layouts form the slambda eval environmen…
Jack Rickard (@Skepfyr)FDO: Add counter fields and flag
This adds Fdo_annotation, the set of counters of a program point, and the fields that will carry counters through Flambda:
yusumez-jsFDO: Declare counters for new FDO implementation
This adds types and utility functions for the pseudo-instrumentation counters to be propagated throughout compilation.
yusumez-jsFDO: Function body hash
Adds function body hashes.
yusumez-jsFDO: Function identities from Lambda
Adds Fdo_fingerprint, which maintains the identity given to functions for FDO. Fdo_fingerprint.t contains:
yusumez-jsFix TMC calls in the body of a try
The dps version of [try] blocks were generated incorrectly: Firstly, the body of the try was marked as tail, which is incorrect, as it needs to pop exception handler.
Aaron Eline (@aaronjeline)Fix `-flambda2-match-in-match` bug
I don't quite understand what's happening here, but it seems to be the right fix.
dkalinichenko-jsFix `box` record disambiguation
Fix
dkalinichenko-jsFix `scrape_ty` to still look through `[@@unboxed]` types containing `or_null`
Typeopt.scrape_ty promises to scrape away [@@unboxed] types, which it looks through using Ctype.get_unboxed_type_approximation. However, get_unboxed_type_approximation also looks through or_null types, and if it reported it did, then we currently throw away the whole result and incorrectly use the un-scraped input type.
Ryan Tjoa (@rtjoa)Fix fiber preemptibility at creation
We plan to make preemptable fibers have distinct TLS states, so it no longer makes sense for fibers to change between preemptable and non-preemptable depending on how they're resumed. This PR adds an is_preemptable flag set at creation time and splits the stdlib continuation type into preemptable and non-preemptable.
Max Slater (@TheNumbat)Fix kind of flambda unboxing `Block_{g,s}et`
In Block_get and Block_set, apply the rewrites
Xavier Clerc (@xclerc)Flambda2: define all names for recursive closures before adding equations
With -dflamdba-heavy-invariants, this was (rightfully) reported as an error.
Vincent Laviron (@lthls)Flamdba2: fix duplicate variable bindings with binary join
The old join can end up creating a level where the same variable is bound with multiple, different binding times (when the variable is present in both join inputs but one has gone through a join and not the other). This is mostly harmless (we're using maps/sets for variables most of the time, so we won't iterate twice on the variable) but it is arguably a bu…
Vincent Laviron (@lthls)Flatten representation of product-containing singleton blocks on bytecode
Today, the following two types have the same layout but are represented differently on bytecode:
Zack Eisbach (@zackbach)Function specialization
Mark Shinwell (@mshinwell)