JIT.h: Add option for lowered function size

This commit is contained in:
Elad 2025-01-22 10:33:07 +02:00
parent 67f2356ef7
commit 3f4210437d
3 changed files with 6 additions and 6 deletions

View file

@ -211,7 +211,7 @@ const asmjit::Environment& jit_runtime_base::environment() const noexcept
return g_env;
}
void* jit_runtime_base::_add(asmjit::CodeHolder* code) noexcept
void* jit_runtime_base::_add(asmjit::CodeHolder* code, usz align) noexcept
{
ensure(!code->flatten());
ensure(!code->resolveUnresolvedLinks());
@ -219,7 +219,7 @@ void* jit_runtime_base::_add(asmjit::CodeHolder* code) noexcept
if (!codeSize)
return nullptr;
auto p = ensure(this->_alloc(codeSize, 64));
auto p = ensure(this->_alloc(codeSize, align));
ensure(!code->relocateToBase(uptr(p)));
{