mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
22 lines
440 B
C++
22 lines
440 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/Ast.h"
|
|
#include "Luau/DenseHash.h"
|
|
|
|
namespace Luau
|
|
{
|
|
namespace Compile
|
|
{
|
|
|
|
struct TableShape
|
|
{
|
|
unsigned int arraySize = 0;
|
|
unsigned int hashSize = 0;
|
|
};
|
|
|
|
void predictTableShapes(DenseHashMap<AstExprTable*, TableShape>& shapes, AstNode* root);
|
|
|
|
} // namespace Compile
|
|
} // namespace Luau
|