mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00

This is in preparation for making LibJIT support multiple architectures. Assembler will now be typedefed to the specific assembler for a particular architecture. Additionally, there's now JIT_ARCH_SUPPORTED which is defined on architectures which LibJIT supports.
18 lines
310 B
C++
18 lines
310 B
C++
/*
|
|
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibJIT/X86_64/Assembler.h>
|
|
|
|
namespace JIT {
|
|
#if ARCH(X86_64)
|
|
# define JIT_ARCH_SUPPORTED 1
|
|
typedef X86_64Assembler Assembler;
|
|
#else
|
|
# undef JIT_ARCH_SUPPORTED
|
|
#endif
|
|
}
|