IndexCoreasmjit::Globals

asmjit::Globals Namespace Reference [¶]

Contains constants and variables used globally across AsmJit.

Classes

Functions

Variables

uint32_t Globals::kAllocOverhead = uint32_t(
sizeof(intptr_t
)* 4u)staticconstexpr[¶]

Host memory allocator overhead.

uint32_t Globals::kAllocAlignment = 8ustaticconstexpr[¶]

Host memory allocator alignment.

uint32_t Globals::kGrowThreshold = 1024u* 1024u* 16ustaticconstexpr[¶]

Aggressive growing strategy threshold.

uint32_t Globals::kMaxTreeHeight = (__detected_at_runtime__(32 | 64) == 32 ? 30 : 61) + 1staticconstexpr[¶]

Maximum depth of RB-Tree is:

2 * log2(n + 1)

Size of RB node is at least two pointers (without data), so a theoretical architecture limit would be:

2 * log2(addressable_memory_size / sizeof(Node) + 1)

Which yields 30 on 32-bit arch and 61 on 64-bit arch. The final value was adjusted by +1 for safety reasons.

uint32_t Globals::kMaxOpCount = 6staticconstexpr[¶]

Maximum number of operands per a single instruction.

uint32_t Globals::kMaxFuncArgs = 32staticconstexpr[¶]

Maximum arguments of a function supported by the Compiler / Function API.

uint32_t Globals::kMaxValuePack = 4staticconstexpr[¶]

The number of values that can be assigned to a single function argument or return value.

uint32_t Globals::kMaxPhysRegs = 32staticconstexpr[¶]

Maximum number of physical registers AsmJit can use per register group.

uint32_t Globals::kMaxAlignment = 64staticconstexpr[¶]

Maximum alignment.

uint32_t Globals::kMaxLabelNameSize = 2048staticconstexpr[¶]

Maximum label or symbol size in bytes.

uint32_t Globals::kMaxSectionNameSize = 35staticconstexpr[¶]

Maximum section name size.

uint32_t Globals::kMaxCommentSize = 1024staticconstexpr[¶]

Maximum size of a comment.

uint32_t Globals::kInvalidId = 0xFFFFFFFFustaticconstexpr[¶]

Invalid identifier.

uint64_t Globals::kNoBaseAddress = ~uint64_t(0)staticconstexpr[¶]

Invalid base address.

uint32_t Globals::kNumVirtGroups = 4staticconstexpr[¶]

Number of virtual register groups.

const constexpr Init_ Globals::Init {}staticconstexpr[¶]

A decorator used to initialize.

const constexpr NoInit_ Globals::NoInit {}staticconstexpr[¶]

A decorator used to not initialize.

size_t Globals::kNPos = ~size_t(0)staticconstexpr[¶]

Invalid index, which means not in a string. Used by API that can match items in spans, vectors, etc...