Debian Codegraph @

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