1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: set ts=8 sts=2 et sw=2 tw=80:
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef jit_Simulator_h
8 #define jit_Simulator_h
10 #if defined(JS_SIMULATOR_ARM)
11 # include "jit/arm/Simulator-arm.h"
12 #elif defined(JS_SIMULATOR_ARM64)
13 # include "jit/arm64/vixl/Simulator-vixl.h"
14 #elif defined(JS_SIMULATOR_MIPS32)
15 # include "jit/mips32/Simulator-mips32.h"
16 #elif defined(JS_SIMULATOR_MIPS64)
17 # include "jit/mips64/Simulator-mips64.h"
18 #elif defined(JS_SIMULATOR_LOONG64)
19 # include "jit/loong64/Simulator-loong64.h"
20 #elif defined(JS_SIMULATOR_RISCV64)
21 # include "jit/riscv64/Simulator-riscv64.h"
22 #elif defined(JS_SIMULATOR)
23 # error "Unexpected simulator platform"
26 #if defined(JS_SIMULATOR_ARM64)
28 using Simulator
= vixl::Simulator
;
32 #endif /* jit_Simulator_h */