Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/CodeGen/include/Luau/CodeAllocationData.h
2727 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 <stddef.h>
5
#include <stdint.h>
6
7
namespace Luau
8
{
9
namespace CodeGen
10
{
11
12
struct CodeAllocationData
13
{
14
uint8_t* start = nullptr;
15
size_t size = 0;
16
uint8_t* codeStart = nullptr;
17
18
// Allocation is page-aligned and can contain extra data
19
uint8_t* allocationStart = nullptr;
20
size_t allocationSize = 0;
21
};
22
23
} // namespace CodeGen
24
} // namespace Luau
25
26