Bug 1867190 - Add prefs for PHC probablities r=glandium
[gecko.git] / js / src / jit / none / CodeGenerator-none.h
blob6efd71555e3502578268f3e76057ff6867394e69
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 jit_none_CodeGenerator_none_h
8 #define jit_none_CodeGenerator_none_h
10 #include "jit/shared/CodeGenerator-shared.h"
12 namespace js {
13 namespace jit {
15 class CodeGeneratorNone : public CodeGeneratorShared {
16 protected:
17 CodeGeneratorNone(MIRGenerator* gen, LIRGraph* graph, MacroAssembler* masm)
18 : CodeGeneratorShared(gen, graph, masm) {
19 MOZ_CRASH();
22 MoveOperand toMoveOperand(LAllocation) const { MOZ_CRASH(); }
23 template <typename T1, typename T2>
24 void bailoutCmp32(Assembler::Condition, T1, T2, LSnapshot*) {
25 MOZ_CRASH();
27 template <typename T1, typename T2>
28 void bailoutTest32(Assembler::Condition, T1, T2, LSnapshot*) {
29 MOZ_CRASH();
31 template <typename T1, typename T2>
32 void bailoutCmpPtr(Assembler::Condition, T1, T2, LSnapshot*) {
33 MOZ_CRASH();
35 void bailoutTestPtr(Assembler::Condition, Register, Register, LSnapshot*) {
36 MOZ_CRASH();
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 testNullEmitBranch(Assembler::Condition, ValueOperand, MBasicBlock*,
44 MBasicBlock*) {
45 MOZ_CRASH();
47 void testUndefinedEmitBranch(Assembler::Condition, ValueOperand, MBasicBlock*,
48 MBasicBlock*) {
49 MOZ_CRASH();
51 void testObjectEmitBranch(Assembler::Condition, ValueOperand, MBasicBlock*,
52 MBasicBlock*) {
53 MOZ_CRASH();
55 void testZeroEmitBranch(Assembler::Condition, Register, MBasicBlock*,
56 MBasicBlock*) {
57 MOZ_CRASH();
59 void emitTableSwitchDispatch(MTableSwitch*, Register, Register) {
60 MOZ_CRASH();
62 void emitBigIntDiv(LBigIntDiv*, Register, Register, Register, Label*) {
63 MOZ_CRASH();
65 void emitBigIntMod(LBigIntMod*, Register, Register, Register, Label*) {
66 MOZ_CRASH();
68 ValueOperand ToValue(LInstruction*, size_t) { MOZ_CRASH(); }
69 ValueOperand ToTempValue(LInstruction*, size_t) { MOZ_CRASH(); }
70 void generateInvalidateEpilogue() { MOZ_CRASH(); }
73 typedef CodeGeneratorNone CodeGeneratorSpecific;
75 } // namespace jit
76 } // namespace js
78 #endif /* jit_none_CodeGenerator_none_h */