mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-12 21:10:37 +00:00
fd6250cf9d
### What's Changed - Improve readability of unions and intersections by limiting the number of elements of those types that can be presented on a single line (gated under `FFlag::LuauToStringSimpleCompositeTypesSingleLine`) - Adds a new option to the compiler `--record-stats` to record and output compilation statistics - `if...then...else` expressions are now optimized into `AND/OR` form when possible. ### VM - Add a new `buffer` type to Luau based on the [buffer RFC](https://github.com/Roblox/luau/pull/739) and additional C API functions to work with it; this release does not include the library. - Internal C API to work with string buffers has been updated to align with Lua version more closely ### Native Codegen - Added support for new X64 instruction (rev) and new A64 instruction (bswap) in the assembler - Simplified the way numerical loop condition is translated to IR ### New Type Solver - Operator inference now handled by type families - Created a new system called `Type Paths` to explain why subtyping tests fail in order to improve the quality of error messages. - Systematic changes to implement Data Flow analysis in the new solver (`Breadcrumb` removed and replaced with `RefinementKey`) --- 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: Aviral Goel <agoel@roblox.com> Co-authored-by: Lily Brown <lbrown@roblox.com> Co-authored-by: Vighnesh Vijay <vvijay@roblox.com> Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com> --------- Co-authored-by: Arseny Kapoulkine <arseny.kapoulkine@gmail.com> Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com> Co-authored-by: Andy Friesen <afriesen@roblox.com> Co-authored-by: Lily Brown <lbrown@roblox.com> Co-authored-by: Aaron Weiss <aaronweiss@roblox.com> Co-authored-by: Alexander McCord <amccord@roblox.com> Co-authored-by: Aviral Goel <agoel@roblox.com>
25 lines
1.4 KiB
Text
25 lines
1.4 KiB
Text
type synthetic add -x "^Luau::detail::DenseHashTable<.*>$" -l lldb_formatters.DenseHashTableSyntheticChildrenProvider
|
|
type synthetic add -x "^Luau::DenseHashMap<.*>$" -l lldb_formatters.DenseHashMapSyntheticChildrenProvider
|
|
type synthetic add -x "^Luau::DenseHashSet<.*>$" -l lldb_formatters.DenseHashSetSyntheticChildrenProvider
|
|
|
|
type summary add -x "^Luau::DenseHashMap<.*>$" --summary-string "count = ${var.impl.count}"
|
|
type summary add -x "^Luau::DenseHashSet<.*>$" --summary-string "count = ${var.impl.count}"
|
|
|
|
type summary add "Luau::Symbol" -F lldb_formatters.luau_symbol_summary
|
|
|
|
type synthetic add -x "^Luau::Variant<.+>$" -l lldb_formatters.LuauVariantSyntheticChildrenProvider
|
|
type summary add -x "^Luau::Variant<.+>$" -F lldb_formatters.luau_variant_summary
|
|
|
|
type synthetic add -x "^Luau::AstArray<.+>$" -l lldb_formatters.AstArraySyntheticChildrenProvider
|
|
|
|
type summary add -x "^Luau::NotNull<.+>$" --summary-string "${*var.ptr}"
|
|
|
|
type summary add --summary-string "${var.line}:${var.column}" Luau::Position
|
|
type summary add --summary-string "${var.begin}-${var.end}" Luau::Location
|
|
|
|
type summary add --summary-string "${var.ty} (${var%S})" Luau::TypeId Luau::TypePackId
|
|
|
|
type summary add Luau::TypePath::Property -F lldb_formatters.luau_typepath_property_summary
|
|
type summary add --summary-string "[${var.index}]" Luau::TypePath::Index
|
|
|
|
type summary add -x "^Luau::TryPair<.+>$" --summary-string "(${var.first%T}, ${var.second%T})"
|