luau/Compiler/src
vegorov-rbx 42a2805f85
Sync to upstream/release/568 (#865)
* A small subset of control-flow refinements have been added to
recognize type options that are unreachable after a
conditional/unconditional code block. (Fixes
https://github.com/Roblox/luau/issues/356).

Some examples:
```lua
local function f(x: string?)
    if not x then return end

    -- x is 'string' here
end
```
Throwing calls like `error` or `assert(false)` instead of 'return' are
also recognized.
Existing complex refinements like type/typeof and tagged union checks
are expected to work, among others.

To enable this feature, `LuauTinyControlFlowAnalysis` exclusion has to
be removed from `ExperimentalFlags.h`.
If will become enabled unconditionally in the near future.

* Linter has been integrated into the typechecker analysis so that
type-aware lint warnings can work in any mode
`Frontend::lint` methods were deprecated, `Frontend::check` has to be
used instead with `runLintChecks` option set.
Resulting lint warning are located inside `CheckResult`.

* Fixed large performance drop and increased memory consumption when
array is filled at an offset (Fixes
https://github.com/Roblox/luau/issues/590)
* Part of [Type error suppression
RFC](https://github.com/Roblox/luau/blob/master/rfcs/type-error-suppression.md)
was implemented making subtyping checks with `any` type transitive.

---
In our work on the new type-solver:
* `--!nocheck` mode no longer reports type errors
* New solver will not be used for `--!nonstrict` modules until all
issues with strict mode typechecking are fixed
* Added control-flow aware type refinements mentioned earlier

In native code generation:
* `LOP_NAMECALL` has been translated to IR
* `type` and `typeof` builtin fastcalls have been translated to
IR/assembly
* Additional steps were taken towards arm64 support
2023-03-17 12:20:37 -07:00
..
BuiltinFolding.cpp Sync to upstream/release/541 (#644) 2022-08-18 14:32:08 -07:00
BuiltinFolding.h Sync to upstream/release/536 (#592) 2022-07-14 15:52:26 -07:00
Builtins.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
Builtins.h Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
BytecodeBuilder.cpp Sync to upstream/release/566 (#853) 2023-03-03 12:21:14 -08:00
Compiler.cpp Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -07:00
ConstantFolding.cpp Sync to upstream/release/546 (#681) 2022-09-23 12:17:25 -07:00
ConstantFolding.h Sync to upstream/release/536 (#592) 2022-07-14 15:52:26 -07:00
CostModel.cpp String interpolation (#614) 2022-08-24 12:01:00 -07:00
CostModel.h Sync to upstream/release/536 (#592) 2022-07-14 15:52:26 -07:00
lcode.cpp Sync to upstream/release/505 (#216) 2021-11-19 08:10:07 -08:00
TableShape.cpp Sync to upstream/release/513 (#340) 2022-02-04 08:45:57 -08:00
TableShape.h Sync to upstream/release/510 (#313) 2022-01-14 08:20:09 -08:00
ValueTracking.cpp Sync to upstream/release/510 (#313) 2022-01-14 08:20:09 -08:00
ValueTracking.h Sync to upstream/release/510 (#313) 2022-01-14 08:20:09 -08:00