js/src/jit/shared/Lowering-x86-shared.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit/shared/Lowering-x86-shared.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.5 + * vim: set ts=8 sts=4 et sw=4 tw=99:
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef jit_shared_Lowering_x86_shared_h
    1.11 +#define jit_shared_Lowering_x86_shared_h
    1.12 +
    1.13 +#include "jit/shared/Lowering-shared.h"
    1.14 +
    1.15 +namespace js {
    1.16 +namespace jit {
    1.17 +
    1.18 +class LIRGeneratorX86Shared : public LIRGeneratorShared
    1.19 +{
    1.20 +  protected:
    1.21 +    LIRGeneratorX86Shared(MIRGenerator *gen, MIRGraph &graph, LIRGraph &lirGraph)
    1.22 +      : LIRGeneratorShared(gen, graph, lirGraph)
    1.23 +    {}
    1.24 +
    1.25 +    LTableSwitch *newLTableSwitch(const LAllocation &in, const LDefinition &inputCopy,
    1.26 +                                  MTableSwitch *ins);
    1.27 +    LTableSwitchV *newLTableSwitchV(MTableSwitch *ins);
    1.28 +
    1.29 +    bool visitGuardShape(MGuardShape *ins);
    1.30 +    bool visitGuardObjectType(MGuardObjectType *ins);
    1.31 +    bool visitPowHalf(MPowHalf *ins);
    1.32 +    bool lowerForShift(LInstructionHelper<1, 2, 0> *ins, MDefinition *mir, MDefinition *lhs,
    1.33 +                       MDefinition *rhs);
    1.34 +    bool lowerForALU(LInstructionHelper<1, 1, 0> *ins, MDefinition *mir, MDefinition *input);
    1.35 +    bool lowerForALU(LInstructionHelper<1, 2, 0> *ins, MDefinition *mir, MDefinition *lhs,
    1.36 +                     MDefinition *rhs);
    1.37 +    bool lowerForFPU(LInstructionHelper<1, 2, 0> *ins, MDefinition *mir, MDefinition *lhs,
    1.38 +                     MDefinition *rhs);
    1.39 +    bool lowerForBitAndAndBranch(LBitAndAndBranch *baab, MInstruction *mir,
    1.40 +                                 MDefinition *lhs, MDefinition *rhs);
    1.41 +    bool visitConstant(MConstant *ins);
    1.42 +    bool visitAsmJSNeg(MAsmJSNeg *ins);
    1.43 +    bool lowerMulI(MMul *mul, MDefinition *lhs, MDefinition *rhs);
    1.44 +    bool lowerDivI(MDiv *div);
    1.45 +    bool lowerModI(MMod *mod);
    1.46 +    bool lowerUDiv(MDiv *div);
    1.47 +    bool lowerUMod(MMod *mod);
    1.48 +    bool lowerUrshD(MUrsh *mir);
    1.49 +    bool lowerConstantDouble(double d, MInstruction *ins);
    1.50 +    bool lowerConstantFloat32(float d, MInstruction *ins);
    1.51 +    bool lowerTruncateDToInt32(MTruncateToInt32 *ins);
    1.52 +    bool lowerTruncateFToInt32(MTruncateToInt32 *ins);
    1.53 +    bool visitForkJoinGetSlice(MForkJoinGetSlice *ins);
    1.54 +};
    1.55 +
    1.56 +} // namespace jit
    1.57 +} // namespace js
    1.58 +
    1.59 +#endif /* jit_shared_Lowering_x86_shared_h */

mercurial