luau/Analysis/src
Alexander McCord daf79328fc
Sync to upstream/release/628 (#1278)
### What's new?

* Remove a case of unsound `table.move` optimization
* Add Luau stack slot reservations that were missing in REPL (fixes
#1273)

### New Type Solver

* Assignments have been completely reworked to fix a case of cyclic
constraint dependency
* When indexing, if the fresh type's upper bound already contains a
compatible indexer, do not add another upper bound
* Distribute type arguments over all type families sans `eq`, `keyof`,
`rawkeyof`, and other internal type families
* Fix a case where `buffers` component weren't read in two places (fixes
#1267)
* Fix a case where things that constitutes a strong ref were slightly
incorrect
* Fix a case where constraint dependencies weren't setup wrt `for ...
in` statement

### Native Codegen

* Fix an optimization that splits TValue store only when its value and
its tag are compatible
* Implement a system to plug additional type information for custom host
userdata types

---

### 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: Vighnesh Vijay <vvijay@roblox.com>
Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>

---------

Co-authored-by: Aaron Weiss <aaronweiss@roblox.com>
Co-authored-by: Andy Friesen <afriesen@roblox.com>
Co-authored-by: Vighnesh <vvijay@roblox.com>
Co-authored-by: Aviral Goel <agoel@roblox.com>
Co-authored-by: David Cope <dcope@roblox.com>
Co-authored-by: Lily Brown <lbrown@roblox.com>
Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>
2024-05-31 12:18:18 -07:00
..
Anyification.cpp Sync to upstream/release/582 (#960) 2023-06-23 23:19:39 -07:00
ApplyTypeFunction.cpp Sync to upstream/release/582 (#960) 2023-06-23 23:19:39 -07:00
AstJsonEncoder.cpp Sync to upstream/release/610 (#1154) 2024-01-26 19:20:56 -08:00
AstQuery.cpp Sync to upstream/release/614 (#1173) 2024-02-23 12:08:34 -08:00
Autocomplete.cpp Sync to upstream/release/620 (#1223) 2024-04-05 13:45:09 -07:00
BuiltinDefinitions.cpp Sync to upstream/release/627 (#1266) 2024-05-26 10:09:09 -07:00
Clone.cpp Sync to upstream/release/621 (#1229) 2024-04-12 10:18:49 -07:00
Constraint.cpp Sync to upstream/release/628 (#1278) 2024-05-31 12:18:18 -07:00
ConstraintGenerator.cpp Sync to upstream/release/628 (#1278) 2024-05-31 12:18:18 -07:00
ConstraintSolver.cpp Sync to upstream/release/628 (#1278) 2024-05-31 12:18:18 -07:00
DataFlowGraph.cpp Sync to upstream/release/626 (#1258) 2024-05-16 16:02:03 -07:00
DcrLogger.cpp Sync to upstream/release/565 (#845) 2023-02-24 13:49:38 -08:00
Def.cpp Sync to upstream/release/619 (#1218) 2024-03-30 16:14:44 -07:00
Differ.cpp Sync to upstream/release/595 (#1044) 2023-09-15 10:26:59 -07:00
EmbeddedBuiltinDefinitions.cpp Sync to upstream/release/626 (#1258) 2024-05-16 16:02:03 -07:00
Error.cpp Sync to upstream/release/627 (#1266) 2024-05-26 10:09:09 -07:00
Frontend.cpp Sync to upstream/release/625 (#1252) 2024-05-10 11:21:45 -07:00
Generalization.cpp Sync to upstream/release/626 (#1258) 2024-05-16 16:02:03 -07:00
GlobalTypes.cpp Sync to upstream/release/609 (#1150) 2024-01-19 10:04:46 -08:00
Instantiation2.cpp Sync to upstream/release/623 (#1236) 2024-04-25 15:26:09 -07:00
Instantiation.cpp Sync to upstream/release/614 (#1173) 2024-02-23 12:08:34 -08:00
IostreamHelpers.cpp Sync to upstream/release/621 (#1229) 2024-04-12 10:18:49 -07:00
JsonEmitter.cpp Sync to upstream/release/543 (#657) 2022-09-01 16:14:03 -07:00
Linter.cpp Sync to upstream/release/614 (#1173) 2024-02-23 12:08:34 -08:00
LValue.cpp Sync to upstream/release/527 (#491) 2022-05-19 17:02:24 -07:00
Module.cpp Sync to upstream/release/619 (#1218) 2024-03-30 16:14:44 -07:00
NonStrictTypeChecker.cpp Sync to upstream/release/623 (#1236) 2024-04-25 15:26:09 -07:00
Normalize.cpp Sync to upstream/release/627 (#1266) 2024-05-26 10:09:09 -07:00
OverloadResolution.cpp Sync to upstream/release/622 (#1232) 2024-04-19 14:48:02 -07:00
Quantify.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
Refinement.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
RequireTracer.cpp Sync to upstream/release/532 (#545) 2022-06-16 18:05:14 -07:00
Scope.cpp Sync to upstream/release/616 (#1184) 2024-03-08 16:47:53 -08:00
Simplify.cpp Sync to upstream/release/628 (#1278) 2024-05-31 12:18:18 -07:00
Substitution.cpp Sync to upstream/release/621 (#1229) 2024-04-12 10:18:49 -07:00
Subtyping.cpp Sync to upstream/release/628 (#1278) 2024-05-31 12:18:18 -07:00
Symbol.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
TableLiteralInference.cpp Sync to upstream/release/623 (#1236) 2024-04-25 15:26:09 -07:00
ToDot.cpp Sync to upstream/release/621 (#1229) 2024-04-12 10:18:49 -07:00
TopoSortStatements.cpp Sync to upstream/release/555 (#768) 2022-12-02 10:09:59 -08:00
ToString.cpp Sync to upstream/release/628 (#1278) 2024-05-31 12:18:18 -07:00
Transpiler.cpp Sync to upstream/release/603 (#1097) 2023-11-10 13:10:07 -08:00
TxnLog.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
Type.cpp Sync to upstream/release/623 (#1236) 2024-04-25 15:26:09 -07:00
TypeArena.cpp Sync to upstream/release/622 (#1232) 2024-04-19 14:48:02 -07:00
TypeAttach.cpp Sync to upstream/release/607 (#1131) 2023-12-15 13:29:06 -08:00
TypeChecker2.cpp Sync to upstream/release/628 (#1278) 2024-05-31 12:18:18 -07:00
TypedAllocator.cpp Rename Windows.h to windows.h (#1055) 2023-10-03 06:59:44 -07:00
TypeFamily.cpp Sync to upstream/release/628 (#1278) 2024-05-31 12:18:18 -07:00
TypeFamilyReductionGuesser.cpp Sync to upstream/release/621 (#1229) 2024-04-12 10:18:49 -07:00
TypeInfer.cpp Sync to upstream/release/625 (#1252) 2024-05-10 11:21:45 -07:00
TypeOrPack.cpp Sync to upstream/release/600 (#1076) 2023-10-20 18:10:30 -07:00
TypePack.cpp Sync to upstream/release/623 (#1236) 2024-04-25 15:26:09 -07:00
TypePath.cpp Sync to upstream/release/622 (#1232) 2024-04-19 14:48:02 -07:00
TypeUtils.cpp Sync to upstream/release/628 (#1278) 2024-05-31 12:18:18 -07:00
Unifiable.cpp Sync to upstream/release/571 (#895) 2023-04-07 14:01:29 -07:00
Unifier2.cpp Sync to upstream/release/626 (#1258) 2024-05-16 16:02:03 -07:00
Unifier.cpp Sync to upstream/release/625 (#1252) 2024-05-10 11:21:45 -07:00