mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 21:40:43 +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
40 lines
1,016 B
C++
40 lines
1,016 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 "UnwindBuilder.h"
|
|
|
|
namespace Luau
|
|
{
|
|
namespace CodeGen
|
|
{
|
|
|
|
class UnwindBuilderDwarf2 : public UnwindBuilder
|
|
{
|
|
public:
|
|
void start() override;
|
|
|
|
void spill(int espOffset, RegisterX64 reg) override;
|
|
void save(RegisterX64 reg) override;
|
|
void allocStack(int size) override;
|
|
void setupFrameReg(RegisterX64 reg, int espOffset) override;
|
|
|
|
void finish() override;
|
|
|
|
size_t getSize() const override;
|
|
|
|
void finalize(char* target, void* funcAddress, size_t funcSize) const override;
|
|
|
|
private:
|
|
static const unsigned kRawDataLimit = 128;
|
|
char rawData[kRawDataLimit];
|
|
char* pos = rawData;
|
|
|
|
uint32_t stackOffset = 0;
|
|
|
|
// We will remember the FDE location to write some of the fields like entry length, function start and size later
|
|
char* fdeEntryStart = nullptr;
|
|
};
|
|
|
|
} // namespace CodeGen
|
|
} // namespace Luau
|