luau/bench
Alexander McCord c2ba1058c3
Sync to upstream/release/603 (#1097)
# What's changed?

- Record the location of properties for table types (closes #802)
- Implement stricter UTF-8 validations as per the RFC
(https://github.com/luau-lang/rfcs/pull/1)
- Implement `buffer` as a new type in both the old and new solvers.
- Changed errors produced by some `buffer` builtins to be a bit more
generic to avoid platform-dependent error messages.
- Fixed a bug where `Unifier` would copy some persistent types, tripping
some internal assertions.
- Type checking rules on relational operators is now a little bit more
lax.
- Improve dead code elimination for some `if` statements with complex
always-false conditions

## New type solver

- Dataflow analysis now generates phi nodes on exit of branches.
- Dataflow analysis avoids producing a new definition for locals or
properties that are not owned by that loop.
- If a function parameter has been constrained to `never`, report errors
at all uses of that parameter within that function.
- Switch to using the new `Luau::Set` to replace `std::unordered_set` to
alleviate some poor allocation characteristics which was negatively
affecting overall performance.
- Subtyping can now report many failing reasons instead of just the
first one that we happened to find during the test.
- Subtyping now also report reasons for type pack mismatches.
- When visiting `if` statements or expressions, the resulting context
are the common terms in both branches.

## Native codegen

- Implement support for `buffer` builtins to its IR for x64 and A64.
- Optimized `table.insert` by not inserting a table barrier if it is
fastcalled with a constant.

## Internal Contributors

Co-authored-by: Aaron Weiss <aaronweiss@roblox.com>
Co-authored-by: Alexander McCord <amccord@roblox.com>
Co-authored-by: Andy Friesen <afriesen@roblox.com>
Co-authored-by: Arseny Kapoulkine <arseny@roblox.com>
Co-authored-by: Aviral Goel <agoel@roblox.com>
Co-authored-by: Lily Brown <lbrown@roblox.com>
Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>
2023-11-10 13:10:07 -08:00
..
gc Sync to upstream/release/550 (#723) 2022-10-21 10:54:01 -07:00
micro_tests Sync to upstream/release/593 (#1024) 2023-09-01 10:58:27 -07:00
other Sync to upstream/release/598 (#1063) 2023-10-06 12:02:32 -07:00
tests Sync to upstream/release/603 (#1097) 2023-11-10 13:10:07 -08:00
bench_support.lua Sync to upstream/release/581 (#958) 2023-06-16 10:35:18 -07:00
bench.py Sync to upstream/release/581 (#958) 2023-06-16 10:35:18 -07:00
color.py Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
influxbench.py Sync to upstream/release/540 (#635) 2022-08-11 14:01:33 -07:00
install.bat Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
install.sh Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
measure_time.py Added multi-os runners for benchmark & implemented luau analyze (#542) 2022-06-24 09:46:29 -07:00
tabulate.py Sync to upstream/release/593 (#1024) 2023-09-01 10:58:27 -07:00