luau/Analysis/src
vegorov-rbx 76f67e0733
Sync to upstream/release/588 (#992)
Type checker/autocomplete:
* `Luau::autocomplete` no longer performs typechecking internally, make
sure to run `Frontend::check` before performing autocomplete requests
* Autocomplete string suggestions without "" are now only suggested
inside the ""
* Autocomplete suggestions now include `function (anonymous autofilled)`
key with a full suggestion for the function expression (with arguments
included) stored in `AutocompleteEntry::insertText`
* `AutocompleteEntry::indexedWithSelf` is provided for function call
suggestions made with `:`
* Cyclic modules now see each other type exports as `any` to prevent
memory use-after-free (similar to module return type)

Runtime:
* Updated inline/loop unroll cost model to better handle assignments
(Fixes https://github.com/Roblox/luau/issues/978)
* `math.noise` speed was improved by ~30%
* `table.concat` speed was improved by ~5-7%
* `tonumber` and `tostring` now have fastcall paths that execute ~1.5x
and ~2.5x faster respectively (fixes #777)
* Fixed crash in `luaL_typename` when index refers to a non-existing
value
* Fixed potential out of memory scenario when using `string.sub` or
`string.char` in a loop
* Fixed behavior of some fastcall builtins when called without arguments
under -O2 to match original functions
* Support for native code execution in VM is now enabled by default
(note: native code still has to be generated explicitly)
* `Codegen::compile` now accepts `CodeGen_OnlyNativeModules` flag. When
set, only modules that have a `--!native` hot-comment at the top will be
compiled to native code

In our new typechecker:
* Generic type packs are no longer considered to be variadic during
unification
* Timeout and cancellation now works in new solver
* Fixed false positive errors around 'table' and 'function' type
refinements
* Table literals now use covariant unification rules. This is sound
since literal has no type specified and has no aliases
* Fixed issues with blocked types escaping the constraint solver
* Fixed more places where error messages that should've been suppressed
were still reported
* Fixed errors when iterating over a top table type

In our native code generation (jit):
* 'DebugLuauAbortingChecks' flag is now supported on A64
* LOP_NEWCLOSURE has been translated to IR
2023-07-28 08:13:53 -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 Add support for ClassType indexer in definition files (#949) 2023-06-12 13:02:54 -07:00
AstQuery.cpp Sync to upstream/release/578 (#939) 2023-05-25 14:36:34 -07:00
Autocomplete.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
BuiltinDefinitions.cpp Sync to upstream/release/574 (#910) 2023-04-28 12:55:13 -07:00
Clone.cpp Sync to upstream/release/584 (#977) 2023-07-14 11:08:53 -07:00
Config.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
Constraint.cpp Sync to upstream/release/543 (#657) 2022-09-01 16:14:03 -07:00
ConstraintGraphBuilder.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
ConstraintSolver.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07: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
Differ.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
EmbeddedBuiltinDefinitions.cpp Improve the type for os.date using overloads (#874) 2023-05-01 08:09:05 -07:00
Error.cpp Sync to upstream/release/584 (#977) 2023-07-14 11:08:53 -07:00
Frontend.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
Instantiation.cpp Sync to upstream/release/582 (#960) 2023-06-23 23:19:39 -07:00
IostreamHelpers.cpp Sync to upstream/release/578 (#939) 2023-05-25 14:36:34 -07:00
JsonEmitter.cpp Sync to upstream/release/543 (#657) 2022-09-01 16:14:03 -07:00
Linter.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
LValue.cpp Sync to upstream/release/527 (#491) 2022-05-19 17:02:24 -07:00
Module.cpp Sync to upstream/release/584 (#977) 2023-07-14 11:08:53 -07:00
Normalize.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
Quantify.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07: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/588 (#992) 2023-07-28 08:13:53 -07:00
Simplify.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
Substitution.cpp Sync to upstream/release/584 (#977) 2023-07-14 11:08:53 -07:00
Symbol.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
ToDot.cpp Sync to upstream/release/583 (#974) 2023-07-07 13:10:48 -07:00
TopoSortStatements.cpp Sync to upstream/release/555 (#768) 2022-12-02 10:09:59 -08:00
ToString.cpp Sync to upstream/release/584 (#977) 2023-07-14 11:08:53 -07:00
Transpiler.cpp String interpolation (#614) 2022-08-24 12:01:00 -07:00
TxnLog.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
Type.cpp Sync to upstream/release/578 (#939) 2023-05-25 14:36:34 -07:00
TypeArena.cpp Sync to upstream/release/557 (#794) 2023-01-04 12:53:17 -08:00
TypeAttach.cpp Add support for ClassType indexer in definition files (#949) 2023-06-12 13:02:54 -07:00
TypeChecker2.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
TypedAllocator.cpp Sync to upstream/release/555 (#768) 2022-12-02 10:09:59 -08:00
TypeFamily.cpp Sync to upstream/release/580 (#951) 2023-06-09 10:08:00 -07:00
TypeInfer.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
TypePack.cpp Sync to upstream/release/575 (#919) 2023-05-05 14:52:49 -07:00
TypeUtils.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00
Unifiable.cpp Sync to upstream/release/571 (#895) 2023-04-07 14:01:29 -07:00
Unifier.cpp Sync to upstream/release/588 (#992) 2023-07-28 08:13:53 -07:00