Permalink
Browse files

DSPEmitter: Make member functions, aliases and constants private wher…

…e applicable

Given we now use a base class for the interface, we can make all member
functions, types and constants that aren't directly related to
instructions private.
  • Loading branch information...
lioncash committed Jun 21, 2018
1 parent 77f6e50 commit 8d9f74b762eaad793da0a1dce1b4ea1cbfda8d06
Showing with 16 additions and 16 deletions.
  1. +16 −16 Source/Core/Core/DSP/Jit/x64/DSPEmitter.h
@@ -28,29 +28,13 @@ namespace JIT::x64
class DSPEmitter final : public JIT::DSPEmitter, public Gen::X64CodeBlock
{
public:
using DSPCompiledCode = u32 (*)();
using Block = const u8*;
static constexpr size_t MAX_BLOCKS = 0x10000;
DSPEmitter();
~DSPEmitter() override;
u16 RunCycles(u16 cycles) override;
void DoState(PointerWrap& p) override;
void ClearIRAM() override;
void EmitInstruction(UDSPInstruction inst);
void ClearIRAMandDSPJITCodespaceReset();
void CompileDispatcher();
Block CompileStub();
void Compile(u16 start_addr);
bool FlagsNeeded() const;
void FallBackToInterpreter(UDSPInstruction inst);
// Ext commands
void l(UDSPInstruction opc);
void ln(UDSPInstruction opc);
@@ -206,10 +190,24 @@ class DSPEmitter final : public JIT::DSPEmitter, public Gen::X64CodeBlock
void msub(UDSPInstruction opc);
private:
using DSPCompiledCode = u32 (*)();
using Block = const u8*;
// The emitter emits calls to this function. It's present here
// within the class itself to allow access to member variables.
static void CompileCurrent(DSPEmitter& emitter);
void EmitInstruction(UDSPInstruction inst);
void ClearIRAMandDSPJITCodespaceReset();
void CompileDispatcher();
Block CompileStub();
void Compile(u16 start_addr);
bool FlagsNeeded() const;
void FallBackToInterpreter(UDSPInstruction inst);
void WriteBranchExit();
void WriteBlockLink(u16 dest);
@@ -298,6 +296,8 @@ class DSPEmitter final : public JIT::DSPEmitter, public Gen::X64CodeBlock
void multiply_sub();
void multiply_mulx(u8 axh0, u8 axh1);
static constexpr size_t MAX_BLOCKS = 0x10000;
DSPJitRegCache m_gpr{*this};
u16 m_compile_pc;

0 comments on commit 8d9f74b

Please sign in to comment.