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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
michael@0 2 * vim: set ts=8 sts=4 et sw=4 tw=99:
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #ifndef jit_shared_Lowering_x86_shared_h
michael@0 8 #define jit_shared_Lowering_x86_shared_h
michael@0 9
michael@0 10 #include "jit/shared/Lowering-shared.h"
michael@0 11
michael@0 12 namespace js {
michael@0 13 namespace jit {
michael@0 14
michael@0 15 class LIRGeneratorX86Shared : public LIRGeneratorShared
michael@0 16 {
michael@0 17 protected:
michael@0 18 LIRGeneratorX86Shared(MIRGenerator *gen, MIRGraph &graph, LIRGraph &lirGraph)
michael@0 19 : LIRGeneratorShared(gen, graph, lirGraph)
michael@0 20 {}
michael@0 21
michael@0 22 LTableSwitch *newLTableSwitch(const LAllocation &in, const LDefinition &inputCopy,
michael@0 23 MTableSwitch *ins);
michael@0 24 LTableSwitchV *newLTableSwitchV(MTableSwitch *ins);
michael@0 25
michael@0 26 bool visitGuardShape(MGuardShape *ins);
michael@0 27 bool visitGuardObjectType(MGuardObjectType *ins);
michael@0 28 bool visitPowHalf(MPowHalf *ins);
michael@0 29 bool lowerForShift(LInstructionHelper<1, 2, 0> *ins, MDefinition *mir, MDefinition *lhs,
michael@0 30 MDefinition *rhs);
michael@0 31 bool lowerForALU(LInstructionHelper<1, 1, 0> *ins, MDefinition *mir, MDefinition *input);
michael@0 32 bool lowerForALU(LInstructionHelper<1, 2, 0> *ins, MDefinition *mir, MDefinition *lhs,
michael@0 33 MDefinition *rhs);
michael@0 34 bool lowerForFPU(LInstructionHelper<1, 2, 0> *ins, MDefinition *mir, MDefinition *lhs,
michael@0 35 MDefinition *rhs);
michael@0 36 bool lowerForBitAndAndBranch(LBitAndAndBranch *baab, MInstruction *mir,
michael@0 37 MDefinition *lhs, MDefinition *rhs);
michael@0 38 bool visitConstant(MConstant *ins);
michael@0 39 bool visitAsmJSNeg(MAsmJSNeg *ins);
michael@0 40 bool lowerMulI(MMul *mul, MDefinition *lhs, MDefinition *rhs);
michael@0 41 bool lowerDivI(MDiv *div);
michael@0 42 bool lowerModI(MMod *mod);
michael@0 43 bool lowerUDiv(MDiv *div);
michael@0 44 bool lowerUMod(MMod *mod);
michael@0 45 bool lowerUrshD(MUrsh *mir);
michael@0 46 bool lowerConstantDouble(double d, MInstruction *ins);
michael@0 47 bool lowerConstantFloat32(float d, MInstruction *ins);
michael@0 48 bool lowerTruncateDToInt32(MTruncateToInt32 *ins);
michael@0 49 bool lowerTruncateFToInt32(MTruncateToInt32 *ins);
michael@0 50 bool visitForkJoinGetSlice(MForkJoinGetSlice *ins);
michael@0 51 };
michael@0 52
michael@0 53 } // namespace jit
michael@0 54 } // namespace js
michael@0 55
michael@0 56 #endif /* jit_shared_Lowering_x86_shared_h */

mercurial