luau/VM/src
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
..
lapi.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
lapi.h Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
laux.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
lbaselib.cpp Sync to upstream/release/539 (#625) 2022-08-04 15:35:33 -07:00
lbitlib.cpp Implement bit32.byteswap (#1075) 2023-10-23 08:00:48 -07:00
lbuffer.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
lbuffer.h Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
lbuflib.cpp Sync to upstream/release/603 (#1097) 2023-11-10 13:10:07 -08:00
lbuiltins.cpp Sync to upstream/release/602 (#1089) 2023-11-03 16:45:04 -07:00
lbuiltins.h Sync to upstream/release/551 (#727) 2022-10-28 03:37:29 -07:00
lbytecode.h Sync to upstream/release/529 (#505) 2022-05-26 15:08:16 -07:00
lcommon.h Sync to upstream/release/539 (#625) 2022-08-04 15:35:33 -07:00
lcorolib.cpp Sync to upstream/release/544 (#669) 2022-09-08 15:14:25 -07:00
ldblib.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
ldebug.cpp Sync to upstream/release/589 (#1000) 2023-08-04 12:18:54 -07:00
ldebug.h Sync to upstream/release/589 (#1000) 2023-08-04 12:18:54 -07:00
ldo.cpp Sync to upstream/release/602 (#1089) 2023-11-03 16:45:04 -07:00
ldo.h Sync to upstream/release/577 (#934) 2023-05-19 12:37:30 -07:00
lfunc.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
lfunc.h Sync to upstream/release/545 (#674) 2022-09-15 15:38:17 -07:00
lgc.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
lgc.h Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
lgcdebug.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
linit.cpp Sync to upstream/release/601 (#1084) 2023-10-27 14:18:41 -07:00
lmathlib.cpp Sync to upstream/release/595 (#1044) 2023-09-15 10:26:59 -07:00
lmem.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
lmem.h Sync to upstream/release/521 (#443) 2022-03-31 14:01:51 -07:00
lnumprint.cpp Sync to upstream/release/517 (#408) 2022-03-04 08:36:33 -08:00
lnumutils.h Sync to upstream/release/593 (#1024) 2023-09-01 10:58:27 -07:00
lobject.cpp Sync to upstream/release/550 (#723) 2022-10-21 10:54:01 -07:00
lobject.h Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
loslib.cpp Sync to upstream/release/603 (#1097) 2023-11-10 13:10:07 -08:00
lperf.cpp Rename Windows.h to windows.h (#1055) 2023-10-03 06:59:44 -07:00
lstate.cpp Sync to upstream/release/584 (#977) 2023-07-14 11:08:53 -07:00
lstate.h Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
lstring.cpp Sync to upstream/release/545 (#674) 2022-09-15 15:38:17 -07:00
lstring.h Sync to upstream/release/539 (#625) 2022-08-04 15:35:33 -07:00
lstrlib.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
ltable.cpp Sync to upstream/release/572 (#899) 2023-04-14 11:06:22 -07:00
ltable.h Sync to upstream/release/538 (#616) 2022-07-28 21:24:07 -07:00
ltablib.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
ltm.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
ltm.h Sync to upstream/release/593 (#1024) 2023-09-01 10:58:27 -07:00
ludata.cpp Add lua_getuserdatadtor (#870) 2023-04-11 12:46:55 -07:00
ludata.h Sync to upstream/release/539 (#625) 2022-08-04 15:35:33 -07:00
lutf8lib.cpp Sync to upstream/release/603 (#1097) 2023-11-10 13:10:07 -08:00
lvm.h Sync to upstream/release/581 (#958) 2023-06-16 10:35:18 -07:00
lvmexecute.cpp Sync to upstream/release/603 (#1097) 2023-11-10 13:10:07 -08:00
lvmload.cpp Sync to upstream/release/590 (#1008) 2023-08-11 07:42:37 -07:00
lvmutils.cpp Sync to upstream/release/593 (#1024) 2023-09-01 10:58:27 -07:00