CodeGenerator-wasm32.h (1940B)
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 bailoutIfFalseBool(Register, LSnapshot*) { MOZ_CRASH(); } 36 void bailoutFrom(Label*, LSnapshot*) { MOZ_CRASH(); } 37 void bailout(LSnapshot*) { MOZ_CRASH(); } 38 void bailoutIf(Assembler::Condition, LSnapshot*) { MOZ_CRASH(); } 39 bool generateOutOfLineCode() { MOZ_CRASH(); } 40 void emitTableSwitchDispatch(MTableSwitch*, Register, Register) { 41 MOZ_CRASH(); 42 } 43 void emitBigIntPtrDiv(LBigIntPtrDiv*, Register, Register, Register) { 44 MOZ_CRASH(); 45 } 46 void emitBigIntPtrMod(LBigIntPtrMod*, Register, Register, Register) { 47 MOZ_CRASH(); 48 } 49 void generateInvalidateEpilogue() { MOZ_CRASH(); } 50 }; 51 52 using CodeGeneratorSpecific = CodeGeneratorWasm32; 53 54 } // namespace js::jit 55 56 #endif /* jit_wasm32_CodeGenerator_wasm32_h */