js/src/jit/none/Lowering-none.h
author Steve Singer <steve@ssinger.info>
Thu, 11 Dec 2014 19:18:00 -0500
changeset 219786 d2d00379a376f2cf4699d58d7bc112733643cfd5
parent 219266 f91c20c6dc8d047546746c5b354ba47da246d71a
child 219908 827b1ad5126d5946bca017eff1b2fd2f1a2ffa02
permissions -rw-r--r--
Bug 1108834 - Switch visitSubstr return type to void. r=h4writer CLOSED TREE

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 * vim: set ts=8 sts=4 et sw=4 tw=99:
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef jit_none_Lowering_none_h
#define jit_none_Lowering_none_h

#include "jit/shared/Lowering-shared.h"

namespace js {
namespace jit {

class LIRGeneratorNone : public LIRGeneratorShared
{
  public:
    LIRGeneratorNone(MIRGenerator *gen, MIRGraph &graph, LIRGraph &lirGraph)
      : LIRGeneratorShared(gen, graph, lirGraph)
    {
        MOZ_CRASH();
    }

    void useBox(LInstruction *, size_t, MDefinition *,
                LUse::Policy a = LUse::REGISTER, bool b = false) {
        MOZ_CRASH();
    }
    void useBoxFixed(LInstruction *, size_t, MDefinition *, Register, Register) { MOZ_CRASH(); }

    LAllocation useByteOpRegister(MDefinition *) { MOZ_CRASH(); }
    LAllocation useByteOpRegisterOrNonDoubleConstant(MDefinition *) { MOZ_CRASH(); }
    LDefinition tempByteOpRegister() { MOZ_CRASH(); }
    LDefinition tempToUnbox() { MOZ_CRASH(); }
    bool needTempForPostBarrier() { MOZ_CRASH(); }
    LDefinition tempForDispatchCache(MIRType v = MIRType_None) { MOZ_CRASH(); }
    void lowerUntypedPhiInput(MPhi *, uint32_t, LBlock *, size_t) { MOZ_CRASH(); }
    void defineUntypedPhi(MPhi *, size_t) { MOZ_CRASH(); }
    void lowerForShift(LInstructionHelper<1, 2, 0> *, MDefinition *, MDefinition *, MDefinition *) {
        MOZ_CRASH();
    }
    void lowerUrshD(MUrsh *) { MOZ_CRASH(); }
    template <typename T>
    void lowerForALU(T, MDefinition *, MDefinition *, MDefinition *v = nullptr) { MOZ_CRASH(); }
    template <typename T>
    void lowerForFPU(T, MDefinition *, MDefinition *, MDefinition *v = nullptr) { MOZ_CRASH(); }
    void lowerForCompIx4(LSimdBinaryCompIx4 *ins, MSimdBinaryComp *mir,
                         MDefinition *lhs, MDefinition *rhs) {
        MOZ_CRASH();
    }
    void lowerForCompFx4(LSimdBinaryCompFx4 *ins, MSimdBinaryComp *mir,
                         MDefinition *lhs, MDefinition *rhs) {
        MOZ_CRASH();
    }
    void lowerForBitAndAndBranch(LBitAndAndBranch *, MInstruction *,
                                 MDefinition *, MDefinition *) {
        MOZ_CRASH();
    }

    void lowerConstantDouble(double, MInstruction *) { MOZ_CRASH(); }
    void lowerConstantFloat32(float, MInstruction *) { MOZ_CRASH(); }
    void lowerTruncateDToInt32(MTruncateToInt32 *) { MOZ_CRASH(); }
    void lowerTruncateFToInt32(MTruncateToInt32 *) { MOZ_CRASH(); }
    void lowerDivI(MDiv *) { MOZ_CRASH(); }
    void lowerModI(MMod *) { MOZ_CRASH(); }
    void lowerMulI(MMul *, MDefinition *, MDefinition *) { MOZ_CRASH(); }
    void lowerUDiv(MDiv *) { MOZ_CRASH(); }
    void lowerUMod(MMod *) { MOZ_CRASH(); }
    void visitBox(MBox *box) { MOZ_CRASH(); }
    void visitUnbox(MUnbox *unbox) { MOZ_CRASH(); }
    void visitReturn(MReturn *ret) { MOZ_CRASH(); }
    void visitPowHalf(MPowHalf *) { MOZ_CRASH(); }
    void visitAsmJSNeg(MAsmJSNeg *) { MOZ_CRASH(); }
    void visitGuardShape(MGuardShape *ins) { MOZ_CRASH(); }
    void visitGuardObjectType(MGuardObjectType *ins) { MOZ_CRASH(); }
    void visitAsmJSUnsignedToDouble(MAsmJSUnsignedToDouble *ins) { MOZ_CRASH(); }
    void visitAsmJSUnsignedToFloat32(MAsmJSUnsignedToFloat32 *ins) { MOZ_CRASH(); }
    void visitAsmJSLoadHeap(MAsmJSLoadHeap *ins) { MOZ_CRASH(); }
    void visitAsmJSStoreHeap(MAsmJSStoreHeap *ins) { MOZ_CRASH(); }
    void visitAsmJSLoadFuncPtr(MAsmJSLoadFuncPtr *ins) { MOZ_CRASH(); }
    void visitStoreTypedArrayElementStatic(MStoreTypedArrayElementStatic *ins) { MOZ_CRASH(); }
    void visitForkJoinGetSlice(MForkJoinGetSlice *ins) { MOZ_CRASH(); }
    void visitAtomicTypedArrayElementBinop(MAtomicTypedArrayElementBinop *ins) { MOZ_CRASH(); }
    void visitCompareExchangeTypedArrayElement(MCompareExchangeTypedArrayElement *ins) { MOZ_CRASH(); }
    void visitAsmJSCompareExchangeHeap(MAsmJSCompareExchangeHeap *ins) { MOZ_CRASH(); }
    void visitAsmJSAtomicBinopHeap(MAsmJSAtomicBinopHeap *ins) { MOZ_CRASH(); }

    LTableSwitch *newLTableSwitch(LAllocation, LDefinition, MTableSwitch *) { MOZ_CRASH(); }
    LTableSwitchV *newLTableSwitchV(MTableSwitch *) { MOZ_CRASH(); }
    void visitSimdTernaryBitwise(MSimdTernaryBitwise *ins) { MOZ_CRASH(); }
    void visitSimdSplatX4(MSimdSplatX4 *ins) { MOZ_CRASH(); }
    void visitSimdValueX4(MSimdValueX4 *lir) { MOZ_CRASH(); }
    void visitSubstr(MSubstr *) { MOZ_CRASH(); }

};

typedef LIRGeneratorNone LIRGeneratorSpecific;

} // namespace jit
} // namespace js

#endif /* jit_none_Lowering_none_h */