fixup! Move public interface of JitX64 class to the top

This commit is contained in:
MerryMage 2016-04-06 23:53:00 +01:00
parent 366a8c5ce9
commit bbeb7c0295

View File

@ -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;