Jit64 RegCache cleanup

Mostly a small cleanup of the Jit64 RegCache + a way to not flush the RegCache on conditional branches.
If you keep an argument, then please don't make it a bool, use an enum
instead. Flush(false) does not tell me what it's doing.


On Sun, Jun 8, 2014 at 3:50 AM, Ryan Houdek <notifications@github.com>
wrote:

> In Source/Core/Core/PowerPC/Jit64/JitRegCache.h:
>
> > @@ -79,15 +63,17 @@ class RegCache
> >  		FlushR(reg1); FlushR(reg2);
> >  		LockX(reg1); LockX(reg2);
> >  	}
> > -	virtual void Flush(FlushMode mode);
> > -	virtual void Flush(PPCAnalyst::CodeOp *op) {Flush(FLUSH_ALL);}
> > +	void Flush(bool clearState = true);
>
> If we can't figure out a name that isn't dumb, I'm fine with the argument.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/dolphin-emu/dolphin/pull/451/files#r13522263>.
>



-- 
Pierre "delroth" Bourdon <delroth@gmail.com>
Software Engineer @ Zürich, Switzerland
http://code.delroth.net/