testsJit.h (762B)
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 jsapi_tests_testsJit_h 8 #define jsapi_tests_testsJit_h 9 10 #include "jit/MacroAssembler.h" 11 12 using EnterTest = void (*)(); 13 14 // On entry to the JIT code, save every register. 15 void PrepareJit(js::jit::MacroAssembler& masm); 16 17 // Generate the exit path of the JIT code, which restores every register. Then, 18 // make it executable and run it. 19 bool ExecuteJit(JSContext* cx, js::jit::MacroAssembler& masm); 20 21 #endif /* !jsapi_tests_testsJit_h */