mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Replace verify() with ensure() with auto src location.
Expression ensure(x) returns x. Using comma operator removed.
This commit is contained in:
parent
38745e5782
commit
e055d16b2c
121 changed files with 693 additions and 690 deletions
|
|
@ -289,7 +289,7 @@ spu_function_t spu_recompiler::compile(spu_program&& _func)
|
|||
const u32 starta = start & -64;
|
||||
const u32 enda = ::align(end, 64);
|
||||
const u32 sizea = (enda - starta) / 64;
|
||||
verify(HERE), sizea;
|
||||
ensure(sizea);
|
||||
|
||||
// Initialize pointers
|
||||
c->lea(x86::rax, x86::qword_ptr(label_code));
|
||||
|
|
@ -370,7 +370,7 @@ spu_function_t spu_recompiler::compile(spu_program&& _func)
|
|||
const u32 starta = start & -32;
|
||||
const u32 enda = ::align(end, 32);
|
||||
const u32 sizea = (enda - starta) / 32;
|
||||
verify(HERE), sizea;
|
||||
ensure(sizea);
|
||||
|
||||
if (sizea == 1)
|
||||
{
|
||||
|
|
@ -492,7 +492,7 @@ spu_function_t spu_recompiler::compile(spu_program&& _func)
|
|||
const u32 starta = start & -32;
|
||||
const u32 enda = ::align(end, 32);
|
||||
const u32 sizea = (enda - starta) / 32;
|
||||
verify(HERE), sizea;
|
||||
ensure(sizea);
|
||||
|
||||
if (sizea == 1)
|
||||
{
|
||||
|
|
@ -1154,7 +1154,7 @@ void spu_recompiler::branch_indirect(spu_opcode_t op, bool jt, bool ret)
|
|||
const u32 end = instr_labels.rbegin()->first + 4;
|
||||
|
||||
// Load local indirect jump address, check local bounds
|
||||
verify(HERE), start == m_base;
|
||||
ensure(start == m_base);
|
||||
Label fail = c->newLabel();
|
||||
c->mov(qw1->r32(), *addr);
|
||||
c->sub(qw1->r32(), pc0->r32());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue