mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-14 06:00:39 +00:00
218159140c
* Added support for async typechecking cancellation using a token passed through frontend options * Added luaC_enumheap for building debug tools that need a graph of Luau heap In our new typechecker: * Errors or now suppressed when checking property lookup of error-suppressing unions In our native code generation (jit): * Fixed unhandled value type in NOT_ANY lowering * Fast-call tag checks will exit to VM on failure, instead of relying on a native fallback * Added vector type to the type information * Eliminated redundant direct jumps across dead blocks * Debugger APIs are now disabled for call frames executing natively * Implemented support for unwind registration on macOS 14
28 lines
641 B
C++
28 lines
641 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
|
|
{
|
|
|
|
struct IrBuilder;
|
|
struct IrOp;
|
|
|
|
enum class BuiltinImplType
|
|
{
|
|
None,
|
|
UsesFallback, // Uses fallback for unsupported cases
|
|
Full, // Is either implemented in full, or exits to VM
|
|
};
|
|
|
|
struct BuiltinImplResult
|
|
{
|
|
BuiltinImplType type;
|
|
int actualResultCount;
|
|
};
|
|
|
|
BuiltinImplResult translateBuiltin(IrBuilder& build, int bfid, int ra, int arg, IrOp args, int nparams, int nresults, IrOp fallback, int pcpos);
|
|
|
|
} // namespace CodeGen
|
|
} // namespace Luau
|