mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
27 lines
561 B
C++
27 lines
561 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/Common.h"
|
|
|
|
#include <vector>
|
|
#include <stdint.h>
|
|
|
|
#include "lobject.h"
|
|
|
|
namespace Luau
|
|
{
|
|
namespace CodeGen
|
|
{
|
|
|
|
struct IrFunction;
|
|
|
|
void buildBytecodeBlocks(IrFunction& function, const std::vector<uint8_t>& jumpTargets);
|
|
void analyzeBytecodeTypes(IrFunction& function);
|
|
|
|
static bool hasTypedParameters(Proto* proto)
|
|
{
|
|
return proto->typeinfo && proto->numparams != 0;
|
|
}
|
|
|
|
} // namespace CodeGen
|
|
} // namespace Luau
|