luau/Analysis/src
vegorov-rbx 140e5a1495
Sync to upstream/release/566 (#853)
* Fixed incorrect lexeme generated for string parts in the middle of an
interpolated string (Fixes https://github.com/Roblox/luau/issues/744)
* DeprecatedApi lint can report some issues without type inference
information
* Fixed performance of autocomplete requests when suggestions have large
intersection types (Solves
https://github.com/Roblox/luau/discussions/847)
* Marked `table.getn`/`foreach`/`foreachi` as deprecated ([RFC:
Deprecate
table.getn/foreach/foreachi](https://github.com/Roblox/luau/blob/master/rfcs/deprecate-table-getn-foreach.md))
* With -O2 optimization level, we now optimize builtin calls based on
known argument/return count.
Note that this change can be observable if `getfenv/setfenv` is used to
substitute a builtin, especially if arity is different.
Fastcall heavy tests show a 1-2% improvement.
* Luau can now be built with clang-cl (Fixes
https://github.com/Roblox/luau/issues/736)

We also made many improvements to our experimental components.

For our new type solver:
* Overhauled data flow analysis system, fixed issues with 'repeat'
loops, global variables and type annotations
* Type refinements now work on generic table indexing with a string
literal
* Type refinements will properly track potentially 'nil' values (like
t[x] for a missing key) and their further refinements
* Internal top table type is now isomorphic to `{}` which fixes issues
when `typeof(v) == 'table'` type refinement is handled
* References to non-existent types in type annotations no longer resolve
to 'error' type like in old solver
* Improved handling of class unions in property access expressions
* Fixed default type packs
* Unsealed tables can now have metatables
* Restored expected types for function arguments

And for native code generation:
* Added min and max IR instructions mapping to vminsd/vmaxsd on x64
* We now speculatively extract direct execution fast-paths based on
expected types of expressions which provides better optimization
opportunities inside a single basic block
* Translated existing math fastcalls to IR form to improve tag guard
removal and constant propagation
2023-03-03 12:21:14 -08:00
..
Anyification.cpp Attach definition location to TableType (#801) 2023-01-12 06:21:25 -08:00
ApplyTypeFunction.cpp Sync to upstream/release/557 (#794) 2023-01-04 12:53:17 -08:00
AstJsonEncoder.cpp Sync to upstream/release/556 (#782) 2022-12-09 11:57:01 -08:00
AstQuery.cpp Sync to upstream/release/560 (#810) 2023-01-20 12:27:03 -08:00
Autocomplete.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
BuiltinDefinitions.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
Clone.cpp Sync to upstream/release/563 (#833) 2023-02-10 11:40:38 -08:00
Config.cpp Sync to upstream/release/547 (#690) 2022-09-29 15:23:10 -07:00
Constraint.cpp Sync to upstream/release/543 (#657) 2022-09-01 16:14:03 -07:00
ConstraintGraphBuilder.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
ConstraintSolver.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
DataFlowGraph.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
DcrLogger.cpp Sync to upstream/release/565 (#845) 2023-02-24 13:49:38 -08:00
Def.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
EmbeddedBuiltinDefinitions.cpp Sync to upstream/release/561 (#820) 2023-01-27 14:28:31 -08:00
Error.cpp Sync to upstream/release/557 (#794) 2023-01-04 12:53:17 -08:00
Frontend.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
Instantiation.cpp Sync to upstream/release/563 (#833) 2023-02-10 11:40:38 -08:00
IostreamHelpers.cpp Sync to upstream/release/557 (#794) 2023-01-04 12:53:17 -08:00
JsonEmitter.cpp Sync to upstream/release/543 (#657) 2022-09-01 16:14:03 -07:00
Linter.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
LValue.cpp Sync to upstream/release/527 (#491) 2022-05-19 17:02:24 -07:00
Module.cpp Sync to upstream/release/564 (#841) 2023-02-17 15:41:51 -08:00
Normalize.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
Quantify.cpp Sync to upstream/release/565 (#845) 2023-02-24 13:49:38 -08:00
Refinement.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
RequireTracer.cpp Sync to upstream/release/532 (#545) 2022-06-16 18:05:14 -07:00
Scope.cpp Sync to upstream/release/565 (#845) 2023-02-24 13:49:38 -08:00
Substitution.cpp Sync to upstream/release/561 (#820) 2023-01-27 14:28:31 -08:00
Symbol.cpp Sync to upstream/release/501 (#20) 2021-11-01 14:52:34 -07:00
ToDot.cpp Sync to upstream/release/557 (#794) 2023-01-04 12:53:17 -08:00
TopoSortStatements.cpp Sync to upstream/release/555 (#768) 2022-12-02 10:09:59 -08:00
ToString.cpp Sync to upstream/release/565 (#845) 2023-02-24 13:49:38 -08:00
Transpiler.cpp String interpolation (#614) 2022-08-24 12:01:00 -07:00
TxnLog.cpp Sync to upstream/release/561 (#820) 2023-01-27 14:28:31 -08:00
Type.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
TypeArena.cpp Sync to upstream/release/557 (#794) 2023-01-04 12:53:17 -08:00
TypeAttach.cpp Sync to upstream/release/558 (#796) 2023-01-06 13:14:35 -08:00
TypeChecker2.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
TypedAllocator.cpp Sync to upstream/release/555 (#768) 2022-12-02 10:09:59 -08:00
TypeInfer.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
TypePack.cpp Sync to upstream/release/560 (#810) 2023-01-20 12:27:03 -08:00
TypeReduction.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
TypeUtils.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
Unifiable.cpp Sync to upstream/release/560 (#810) 2023-01-20 12:27:03 -08:00
Unifier.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00