tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

CodeGenerator-none.h (1946B)


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