mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
fe7621ee8c
* Work toward affording parallel type checking * The interface to `LazyType` has changed: * `LazyType` now takes a second callback that is passed the `LazyType&` itself. This new callback is responsible for populating the field `TypeId LazyType::unwrapped`. Multithreaded implementations should acquire a lock in this callback. * Modules now retain their `humanReadableNames`. This reduces the number of cases where type checking has to call back to a `ModuleResolver`. * https://github.com/Roblox/luau/pull/902 * Add timing info to the Luau REPL compilation output We've also fixed some bugs and crashes in the new solver as we march toward readiness. * Thread ICEs (Internal Compiler Errors) back to the Frontend properly * Refinements are no longer applied to lvalues * More miscellaneous stability improvements Lots of activity in the new JIT engine: * Implement register spilling/restore for A64 * Correct Luau IR value restore location tracking * Fixed use-after-free in x86 register allocator spill restore * Use btz for bit tests * Finish branch assembly support for A64 * Codesize and performance improvements for A64 * The bit32 library has been implemented for arm and x64 --------- Co-authored-by: Arseny Kapoulkine <arseny.kapoulkine@gmail.com> Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>
58 lines
1.7 KiB
C++
58 lines
1.7 KiB
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
namespace Luau
|
|
{
|
|
namespace CodeGen
|
|
{
|
|
namespace A64
|
|
{
|
|
|
|
// See Table C1-1 on page C1-229 of Arm ARM for A-profile architecture
|
|
enum class ConditionA64
|
|
{
|
|
// EQ: integer (equal), floating-point (equal)
|
|
Equal,
|
|
// NE: integer (not equal), floating-point (not equal or unordered)
|
|
NotEqual,
|
|
|
|
// CS: integer (carry set), unsigned integer (greater than, equal), floating-point (greater than, equal or unordered)
|
|
CarrySet,
|
|
// CC: integer (carry clear), unsigned integer (less than), floating-point (less than)
|
|
CarryClear,
|
|
|
|
// MI: integer (negative), floating-point (less than)
|
|
Minus,
|
|
// PL: integer (positive or zero), floating-point (greater than, equal or unordered)
|
|
Plus,
|
|
|
|
// VS: integer (overflow), floating-point (unordered)
|
|
Overflow,
|
|
// VC: integer (no overflow), floating-point (ordered)
|
|
NoOverflow,
|
|
|
|
// HI: integer (unsigned higher), floating-point (greater than, or unordered)
|
|
UnsignedGreater,
|
|
// LS: integer (unsigned lower or same), floating-point (less than or equal)
|
|
UnsignedLessEqual,
|
|
|
|
// GE: integer (signed greater than or equal), floating-point (greater than or equal)
|
|
GreaterEqual,
|
|
// LT: integer (signed less than), floating-point (less than, or unordered)
|
|
Less,
|
|
|
|
// GT: integer (signed greater than), floating-point (greater than)
|
|
Greater,
|
|
// LE: integer (signed less than or equal), floating-point (less than, equal or unordered)
|
|
LessEqual,
|
|
|
|
// AL: always
|
|
Always,
|
|
|
|
Count
|
|
};
|
|
|
|
} // namespace A64
|
|
} // namespace CodeGen
|
|
} // namespace Luau
|