Debian Codegraph @

js/src/jit/x86/CodeGenerator-x86.h

raw
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_x86_CodeGenerator_x86_h
8 #define jit_x86_CodeGenerator_x86_h
9
10 #include "jit/x86-shared/CodeGenerator-x86-shared.h"
11 #include "jit/x86/Assembler-x86.h"
12
13 namespace js {
14 namespace jit {
15
16 class OutOfLineTruncate;
17 class OutOfLineTruncateFloat32;
18
19 class CodeGeneratorX86 : public CodeGeneratorX86Shared {
20 protected:
21 CodeGeneratorX86(MIRGenerator* gen, LIRGraph* graph, MacroAssembler* masm,
22 const wasm::CodeMetadata* wasmCodeMeta);
23
24 void emitBigIntPtrDiv(LBigIntPtrDiv* ins, Register dividend, Register divisor,
25 Register output);
26 void emitBigIntPtrMod(LBigIntPtrMod* ins, Register dividend, Register divisor,
27 Register output);
28
29 template <typename T>
30 void emitWasmLoad(T* ins);
31 template <typename T>
32 void emitWasmStore(T* ins);
33 template <typename T>
34 void emitWasmStoreOrExchangeAtomicI64(T* ins,
35 const wasm::MemoryAccessDesc& access);
36
37 public:
38 void visitOutOfLineTruncate(OutOfLineTruncate* ool);
39 void visitOutOfLineTruncateFloat32(OutOfLineTruncateFloat32* ool);
40 };
41
42 using CodeGeneratorSpecific = CodeGeneratorX86;
43
44 } // namespace jit
45 } // namespace js
46
47 #endif /* jit_x86_CodeGenerator_x86_h */