mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 09:50:15 +00:00
fixup! Move public interface of JitX64 class to the top
This commit is contained in:
parent
366a8c5ce9
commit
bbeb7c0295
@ -37,14 +37,6 @@ struct LocationDescriptorHash {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class JitX64 final : private ArmDecoder::Visitor {
|
class JitX64 final : private ArmDecoder::Visitor {
|
||||||
private:
|
|
||||||
Gen::XEmitter* code = nullptr;
|
|
||||||
|
|
||||||
RegAlloc reg_alloc;
|
|
||||||
|
|
||||||
/// ARM pc -> x64 code block
|
|
||||||
std::unordered_map<LocationDescriptor, CodePtr, LocationDescriptorHash> basic_blocks;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
JitX64() = delete;
|
JitX64() = delete;
|
||||||
explicit JitX64(Gen::XEmitter* code);
|
explicit JitX64(Gen::XEmitter* code);
|
||||||
@ -57,6 +49,14 @@ public:
|
|||||||
/// Returns a pointer to the compiled basic block.
|
/// Returns a pointer to the compiled basic block.
|
||||||
CodePtr Compile(u32 pc, bool TFlag, bool EFlag);
|
CodePtr Compile(u32 pc, bool TFlag, bool EFlag);
|
||||||
|
|
||||||
|
private:
|
||||||
|
Gen::XEmitter* code = nullptr;
|
||||||
|
|
||||||
|
RegAlloc reg_alloc;
|
||||||
|
|
||||||
|
/// ARM pc -> x64 code block
|
||||||
|
std::unordered_map<LocationDescriptor, CodePtr, LocationDescriptorHash> basic_blocks;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LocationDescriptor current = { 0, false, false };
|
LocationDescriptor current = { 0, false, false };
|
||||||
unsigned instructions_compiled = 0;
|
unsigned instructions_compiled = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user