2022-10-14 15:48:41 -04:00
|
|
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
namespace Luau
|
|
|
|
{
|
|
|
|
namespace CodeGen
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Label;
|
2022-10-28 06:37:29 -04:00
|
|
|
struct ModuleHelpers;
|
2022-10-14 15:48:41 -04:00
|
|
|
|
2023-03-03 15:21:14 -05:00
|
|
|
namespace X64
|
|
|
|
{
|
|
|
|
|
|
|
|
class AssemblyBuilderX64;
|
|
|
|
|
2023-03-24 14:03:04 -04:00
|
|
|
void emitInstCall(AssemblyBuilderX64& build, ModuleHelpers& helpers, int ra, int nparams, int nresults);
|
|
|
|
void emitInstReturn(AssemblyBuilderX64& build, ModuleHelpers& helpers, int ra, int actualResults);
|
|
|
|
void emitInstSetList(AssemblyBuilderX64& build, Label& next, int ra, int rb, int count, uint32_t index);
|
2023-03-03 15:21:14 -05:00
|
|
|
void emitinstForGLoop(AssemblyBuilderX64& build, int ra, int aux, Label& loopRepeat, Label& loopExit);
|
|
|
|
void emitinstForGLoopFallback(AssemblyBuilderX64& build, int pcpos, int ra, int aux, Label& loopRepeat);
|
|
|
|
void emitInstForGPrepXnextFallback(AssemblyBuilderX64& build, int pcpos, int ra, Label& target);
|
2023-03-24 14:03:04 -04:00
|
|
|
void emitInstAnd(AssemblyBuilderX64& build, int ra, int rb, int rc);
|
|
|
|
void emitInstAndK(AssemblyBuilderX64& build, int ra, int rb, int kc);
|
|
|
|
void emitInstOr(AssemblyBuilderX64& build, int ra, int rb, int rc);
|
|
|
|
void emitInstOrK(AssemblyBuilderX64& build, int ra, int rb, int kc);
|
2022-12-09 14:57:01 -05:00
|
|
|
void emitInstGetImportFallback(AssemblyBuilderX64& build, int ra, uint32_t aux);
|
2023-01-13 17:10:01 -05:00
|
|
|
void emitInstCoverage(AssemblyBuilderX64& build, int pcpos);
|
2022-10-14 15:48:41 -04:00
|
|
|
|
2023-03-03 15:21:14 -05:00
|
|
|
} // namespace X64
|
2022-10-14 15:48:41 -04:00
|
|
|
} // namespace CodeGen
|
|
|
|
} // namespace Luau
|