Repository activity
40458 results across all weeks
Expose uniqueness errors for structured diagnostics
let dup x = ((x, x) : @ unique)
Gavin Gray (@gavinleroy)Finalize variable (`any`-field) representations at translation instead of typechecking
Records and variants containing any store variable representations (e.g. Record_variable) on their type declarations, which we refine to a fixed representation when typechecking a use of such a record. However, in doing so, we currently default any unfilled sort variables to scannable, preventing them from later being inferred to be something else.
Ryan Tjoa (@rtjoa)Fix Merlin jump-to-definition in compiler frontend
When the ocamlfrontend library was introduced, Merlin jump-to-definition broke in the typing/ directory. This PR fixes it by extending the fix from #6694 to build the ocamlfrontend library's .cmts as well.
Liam Stevenson (@liam923)Fix `DW_AT_call_{file,line,column}`
Per the DWARF spec, DW_AT_call_{file,line,column} on an inlined call should correspond to the call-site, not the definition site. There was a bug with the debuginfo where we were taking this from the definition site instead. I have fixed this, and added a test to catch regressions.
Kevin Svetlitski (@Svetlitski)Fix a jump to uninitialized data in the debugger
This fixes a crash in the debugger where it would sometimes attempt to jump to an uninitialized value. Firstly by fixing the thing that caused it to read uninitialized data, but also making it always check whether skiplist find actually succeded (previously it only checked in the debug runtime).
Jack Rickard (@Skepfyr)Fix caching of DWARF type DIEs
Second in the series reducing the size cost of --enable-oxcaml-dwarf-on-compiler (on top of #6915).
Mark Shinwell (@mshinwell)Fix dwarf shapes for unboxed versions of types and `unit#`
We fix two issues:
Ryan Tjoa (@rtjoa)Fix incorrect DWARF filepaths
Previously, if code in app/foo/one.ml made a function call to something defined in app/bar/two.ml, and that function-call was inlined, the filepath for the function defined in app/bar/two.ml would be mistakenly reported as app/foo/two.ml (i.e. correct source file, wrong directory). Similarly, when an external bound in app/foo/one.ml was coerced to a val expo…
Kevin Svetlitski (@Svetlitski)Fix leak: Tail-calling local returning function
Currently, mode-crossing is applied when enforcing a lower bound on the result of an application. As a result, the following program is allowed:
ainageorgesFix principal checking in ocamltest
Recent expect_asm work broke expect-tests for principal outputs, overriding the same expect block, if only one is present, with both non-principal and principal outputs. Properly split the output in those cases. Combine back principal and non-principal cases that are the same.
dkalinichenko-jsFlip the match in encode_instruction.ml to compile it faster
Change match operands, instr to match instr, operands in the arm64 binary emitter.
Stephen Dolan (@stedolan)Freeze & shift dynamic tables
Previously, it was unsafe to change binding state after freezing the scope, since child fibers are allowed to concurrently read from it. However, we need to support this so that the parent running the with_scope callback / the left child of fork_join can still bind dynamics.
Max Slater (@TheNumbat)Further DWARF improvements for variables and inlined frames
This PR is part of the dwarf202607 series (24 PRs) adding end-to-end DWARF debugging improvements for code compiled with Flambda 2: phantom lets so the debugger can print optimised-out variables, correct attribution of parameters and variables to inlined frames, and DWARF call site information.
Mark Shinwell (@mshinwell)Fuzzer MVP
Add fuzzer MVP. Currently only contains a random program generator with a small subset of OxCaml.
hwasilewskijsGeneralize and generalize structure
Added the generalize and generalize_structure operations, which takes all mode variables above the current level and sets them to the general level.
ainageorgesHarden and document `Cfg_simplify` and its contracts
Follow-ups from a correctness review (by Fable) of backend/cfg/cfg_simplify.ml:
Xavier Clerc (@xclerc)Implement atomic pointer primitives
Implement the following new primitives operating on atomic pointers:
Joe Kerrigan (@joe-kerrigan)Implement missing `idx_atomic` operations
Idx_atomic was missing some operations supported by Atomic.t / Atomic.Loc.
Joe Kerrigan (@joe-kerrigan)Import Typemode error payloads into Merlin
Summary
Gavin Gray (@gavinleroy)Import annotation provenance into Merlin
Summary
Gavin Gray (@gavinleroy)