Debian Codegraph @

js/src/jit/none/CodeGenerator-none.h

raw
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_none_CodeGenerator_none_h
8 #define jit_none_CodeGenerator_none_h
9
10 #include "jit/shared/CodeGenerator-shared.h"
11
12 namespace js {
13 namespace jit {
14
15 class CodeGeneratorNone : public CodeGeneratorShared {
16 protected:
17 CodeGeneratorNone(MIRGenerator* gen, LIRGraph* graph, MacroAssembler* masm,
18 const wasm::CodeMetadata* wasmCodeMeta)
19 : CodeGeneratorShared(gen, graph, masm, wasmCodeMeta) {
20 MOZ_CRASH();
21 }
22
23 MoveOperand toMoveOperand(LAllocation) const { MOZ_CRASH(); }
24 template <typename T1, typename T2>
25 void bailoutCmp32(Assembler::Condition, T1, T2, LSnapshot*) {
26 MOZ_CRASH();
27 }
28 template <typename T1, typename T2>
29 void bailoutTest32(Assembler::Condition, T1, T2, LSnapshot*) {
30 MOZ_CRASH();
31 }
32 template <typename T1, typename T2>
33 void bailoutCmpPtr(Assembler::Condition, T1, T2, LSnapshot*) {
34 MOZ_CRASH();
35 }
36 void bailoutTestPtr(Assembler::Condition, Register, Register, LSnapshot*) {
37 MOZ_CRASH();
38 }
39 void bailoutIfFalseBool(Register, LSnapshot*) { MOZ_CRASH(); }
40 void bailoutFrom(Label*, LSnapshot*) { MOZ_CRASH(); }
41 void bailout(LSnapshot*) { MOZ_CRASH(); }
42 void bailoutIf(Assembler::Condition, LSnapshot*) { MOZ_CRASH(); }
43 bool generateOutOfLineCode() { MOZ_CRASH(); }
44 void emitTableSwitchDispatch(MTableSwitch*, Register, Register) {
45 MOZ_CRASH();
46 }
47 void emitBigIntPtrDiv(LBigIntPtrDiv*, Register, Register, Register) {
48 MOZ_CRASH();
49 }
50 void emitBigIntPtrMod(LBigIntPtrMod*, Register, Register, Register) {
51 MOZ_CRASH();
52 }
53 void generateInvalidateEpilogue() { MOZ_CRASH(); }
54 };
55
56 using CodeGeneratorSpecific = CodeGeneratorNone;
57
58 } // namespace jit
59 } // namespace js
60
61 #endif /* jit_none_CodeGenerator_none_h */