LibJS/JIT: Include headers before they are used

JIT_ARCH_SUPPORTED is defined in LibJIT/Assembler.h, so we need to
include it first.

This change also moves the non-JIT headers outside the #ifdef
This commit is contained in:
Simon Wanner 2023-11-06 10:22:20 +01:00 committed by Andreas Kling
parent 64947506da
commit 7e3cfaf08c

View file

@ -8,12 +8,12 @@
#pragma once
#include <AK/Platform.h>
#include <LibJIT/Assembler.h>
#include <LibJS/Bytecode/Executable.h>
#include <LibJS/Bytecode/Op.h>
#include <LibJS/JIT/NativeExecutable.h>
#ifdef JIT_ARCH_SUPPORTED
# include <LibJIT/Assembler.h>
# include <LibJS/Bytecode/Executable.h>
# include <LibJS/Bytecode/Op.h>
namespace JS::JIT {