Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/Compiler/src/TableShape.h
2725 views
1
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
2
#pragma once
3
4
#include "Luau/Ast.h"
5
#include "Luau/DenseHash.h"
6
7
namespace Luau
8
{
9
namespace Compile
10
{
11
12
struct TableShape
13
{
14
unsigned int arraySize = 0;
15
unsigned int hashSize = 0;
16
};
17
18
void predictTableShapes(DenseHashMap<AstExprTable*, TableShape>& shapes, AstNode* root);
19
20
} // namespace Compile
21
} // namespace Luau
22
23