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"
15 class CodeGeneratorNone
: public CodeGeneratorShared
{
17 CodeGeneratorNone(MIRGenerator
* gen
, LIRGraph
* graph
, MacroAssembler
* masm
)
18 : CodeGeneratorShared(gen
, graph
, masm
) {
22 MoveOperand
toMoveOperand(LAllocation
) const { MOZ_CRASH(); }
23 template <typename T1
, typename T2
>
24 void bailoutCmp32(Assembler::Condition
, T1
, T2
, LSnapshot
*) {
27 template <typename T1
, typename T2
>
28 void bailoutTest32(Assembler::Condition
, T1
, T2
, LSnapshot
*) {
31 template <typename T1
, typename T2
>
32 void bailoutCmpPtr(Assembler::Condition
, T1
, T2
, LSnapshot
*) {
35 void bailoutTestPtr(Assembler::Condition
, Register
, Register
, LSnapshot
*) {
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
*,
47 void testUndefinedEmitBranch(Assembler::Condition
, ValueOperand
, MBasicBlock
*,
51 void testObjectEmitBranch(Assembler::Condition
, ValueOperand
, MBasicBlock
*,
55 void testZeroEmitBranch(Assembler::Condition
, Register
, MBasicBlock
*,
59 void emitTableSwitchDispatch(MTableSwitch
*, Register
, Register
) {
62 void emitBigIntDiv(LBigIntDiv
*, Register
, Register
, Register
, Label
*) {
65 void emitBigIntMod(LBigIntMod
*, Register
, Register
, Register
, Label
*) {
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
;
78 #endif /* jit_none_CodeGenerator_none_h */