Lowering-mips64.h (1876B)
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_mips64_Lowering_mips64_h 8 #define jit_mips64_Lowering_mips64_h 9 10 #include "jit/mips-shared/Lowering-mips-shared.h" 11 12 namespace js { 13 namespace jit { 14 15 class LIRGeneratorMIPS64 : public LIRGeneratorMIPSShared { 16 protected: 17 LIRGeneratorMIPS64(MIRGenerator* gen, MIRGraph& graph, LIRGraph& lirGraph) 18 : LIRGeneratorMIPSShared(gen, graph, lirGraph) {} 19 20 void lowerInt64PhiInput(MPhi*, uint32_t, LBlock*, size_t); 21 void defineInt64Phi(MPhi*, size_t); 22 23 // Returns a box allocation. reg2 is ignored on 64-bit platforms. 24 LBoxAllocation useBoxFixed(MDefinition* mir, Register reg1, Register reg2, 25 bool useAtStart = false); 26 27 LDefinition tempToUnbox(); 28 29 void lowerUntypedPhiInput(MPhi* phi, uint32_t inputPosition, LBlock* block, 30 size_t lirIndex); 31 32 void lowerBuiltinInt64ToFloatingPoint(MBuiltinInt64ToFloatingPoint* ins); 33 void lowerWasmBuiltinTruncateToInt64(MWasmBuiltinTruncateToInt64* ins); 34 void lowerTruncateDToInt32(MTruncateToInt32* ins); 35 void lowerTruncateFToInt32(MTruncateToInt32* ins); 36 37 void lowerDivI64(MDiv* div); 38 void lowerWasmBuiltinDivI64(MWasmBuiltinDivI64* div); 39 void lowerModI64(MMod* mod); 40 void lowerWasmBuiltinModI64(MWasmBuiltinModI64* mod); 41 void lowerUDivI64(MDiv* div); 42 void lowerUModI64(MMod* mod); 43 44 void lowerAtomicLoad64(MLoadUnboxedScalar* ins); 45 void lowerAtomicStore64(MStoreUnboxedScalar* ins); 46 }; 47 48 typedef LIRGeneratorMIPS64 LIRGeneratorSpecific; 49 50 } // namespace jit 51 } // namespace js 52 53 #endif /* jit_mips64_Lowering_mips64_h */