Fix PHI stack slot syncing.

This commit is contained in:
Mike Pall
2012-05-07 23:16:19 +02:00
parent afc17b3c1a
commit 0d824b7d14
8 changed files with 97 additions and 5 deletions

View File

@@ -383,6 +383,15 @@ static void emit_jcc(ASMState *as, int cc, MCode *target)
as->mcp = p - 6;
}
/* jmp target */
static void emit_jmp(ASMState *as, MCode *target)
{
MCode *p = as->mcp;
*(int32_t *)(p-4) = jmprel(p, target);
p[-5] = XI_JMP;
as->mcp = p - 5;
}
/* call target */
static void emit_call_(ASMState *as, MCode *target)
{