mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-16 06:45:44 +08:00
d5a2a1585e
- Fix rare type checking bugs with invalid generic types escaping the module scope - Fix type checking of variadic type packs in certain cases - Implement type normalization, which resolves a large set of various issues with unions/intersections in type checker - Improve parse errors for trailing commas in function calls and type lists - Reduce profiling skew when using --profile with very high frequencies - Improve performance of `lua_getinfo` (`debug.info`, `debug.traceback` and profiling overhead are now 20% faster/smaller) - Improve performance of polymorphic comparisons (1-2% lift on some benchmarks) - Improve performance of closure creation (1-2% lift on some benchmarks) - Improve string comparison performance (4% lift on string sorting)
39 lines
974 B
C++
39 lines
974 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() = default;
|
|
|
|
virtual void setBeginOffset(size_t beginOffset) = 0;
|
|
virtual size_t getBeginOffset() const = 0;
|
|
|
|
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
|