mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 05:20:38 +00:00
3d74a8f4d4
- Improve type error messages for argument count mismatch in certain cases - Fix type checking variadic returns when the type is incompatible which type checked in certain cases - Reduce size of upvalue objects by 8 bytes on 64-bit platforms - Reduce I$ footprint of interpreter by 1.5KB - Reduce GC pause during atomic stage for programs with a lot of threads - Remove support for bytecode v2
35 lines
861 B
C++
35 lines
861 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
#include "Luau/RegisterX64.h"
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
namespace Luau
|
|
{
|
|
namespace CodeGen
|
|
{
|
|
|
|
class UnwindBuilder
|
|
{
|
|
public:
|
|
virtual ~UnwindBuilder() {}
|
|
|
|
virtual void start() = 0;
|
|
|
|
virtual void spill(int espOffset, RegisterX64 reg) = 0;
|
|
virtual void save(RegisterX64 reg) = 0;
|
|
virtual void allocStack(int size) = 0;
|
|
virtual void setupFrameReg(RegisterX64 reg, int espOffset) = 0;
|
|
|
|
virtual void finish() = 0;
|
|
|
|
virtual size_t getSize() const = 0;
|
|
|
|
// This will place the unwinding data at the target address and might update values of some fields
|
|
virtual void finalize(char* target, void* funcAddress, size_t funcSize) const = 0;
|
|
};
|
|
|
|
} // namespace CodeGen
|
|
} // namespace Luau
|