Simulator.h (959B)
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/. */ 6 7 #ifndef jit_Simulator_h 8 #define jit_Simulator_h 9 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_MIPS64) 15 # include "jit/mips64/Simulator-mips64.h" 16 #elif defined(JS_SIMULATOR_LOONG64) 17 # include "jit/loong64/Simulator-loong64.h" 18 #elif defined(JS_SIMULATOR_RISCV64) 19 # include "jit/riscv64/Simulator-riscv64.h" 20 #elif defined(JS_SIMULATOR) 21 # error "Unexpected simulator platform" 22 #endif 23 24 #if defined(JS_SIMULATOR_ARM64) 25 namespace js::jit { 26 using Simulator = vixl::Simulator; 27 } 28 #endif 29 30 #endif /* jit_Simulator_h */