mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 13:30:40 +00:00
61766a692c
* Adds a currently unused x86-64 assembler as a prerequisite for possible future JIT compilation * Fix a bug in table iteration (closes Possible table iteration bug #504) * Improved warning method when function is used as a type * Fix a bug with unsandboxed iteration with pairs() * Type of coroutine.status() is now a union of value types * Bytecode output for tests/debugging now has labels * Improvements to loop unrolling cost estimation * Report errors when the key obviously doesn't exist in the table
46 lines
662 B
C++
46 lines
662 B
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
|
|
{
|
|
|
|
enum class Condition
|
|
{
|
|
Overflow,
|
|
NoOverflow,
|
|
|
|
Carry,
|
|
NoCarry,
|
|
|
|
Below,
|
|
BelowEqual,
|
|
Above,
|
|
AboveEqual,
|
|
Equal,
|
|
Less,
|
|
LessEqual,
|
|
Greater,
|
|
GreaterEqual,
|
|
|
|
NotBelow,
|
|
NotBelowEqual,
|
|
NotAbove,
|
|
NotAboveEqual,
|
|
NotEqual,
|
|
NotLess,
|
|
NotLessEqual,
|
|
NotGreater,
|
|
NotGreaterEqual,
|
|
|
|
Zero,
|
|
NotZero,
|
|
|
|
// TODO: ordered and unordered floating-point conditions
|
|
|
|
Count
|
|
};
|
|
|
|
} // namespace CodeGen
|
|
} // namespace Luau
|