Bug 1832850 - Part 5: Move the allocateObject definition into gc/Nursery.h r=jandem
[gecko.git] / js / src / jsapi-tests / testsJit.h
blob0984e71c962889a0787923c9897abed42d3b96f2
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 jsapi_tests_testsJit_h
8 #define jsapi_tests_testsJit_h
10 #include "jit/MacroAssembler.h"
12 typedef void (*EnterTest)();
14 // On entry to the JIT code, save every register.
15 void PrepareJit(js::jit::MacroAssembler& masm);
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);
21 #endif /* !jsapi_tests_testsJit_h */